Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
2 Trả lời
2118 Lượt xem

I installed odoo with docker and it working well but I can't find the configuration file.

I looked to the logs I found mention that "2024-08-26 13:15:16,759 1 INFO ? odoo: Using configuration file at /etc/odoo/odoo.conf" but there is no folder under name of odoo at etc. I got an wrong massage "unable to find : /etc/odoo".🌏

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

You can find the config file be using that:

1 - use this command 

docker exec -it CONTAINER_ID /bin/bash 

To get in the docker container

and you can find the container id here by using this command 

docker ps

after enter the container you can find the config file by going to the path 

Ảnh đại diện
Huỷ bỏ

what should I type after the first command?

Câu trả lời hay nhất

Hi,

This is probably because you are trying to access the Odoo container using the Odoo user, while you are using the Docker Desktop terminal to access the container. If I’m correct, you need to access the container as the root user by executing the following command:

sudo docker exec -it -u root container-name /bin/bash



Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 8 25
117
1
thg 8 25
737
0
thg 8 25
74
1
thg 8 25
1046
2
thg 8 25
497