docker-odoo-project
docker-odoo-project copied to clipboard
Can't run example project
Hello, I was not able to make the example project work:
- Using just as it is, returns this error on build stage:
chown: invalid user: ‘odoo:odoo’
The command '/bin/sh -c chown -R odoo:odoo /odoo' returned a non-zero code: 1
- When updating the Dockerfile's image to
ghcr.io/camptocamp/odoo-project:14.0-latest
, building the image works but got this error after tryingdocker-compose up
:
Error response from daemon: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: exec: "docker-entrypoint.sh" executable file not found in $PATH: unknown
Hello, I was not able to make the example project work:
- Using just as it is, returns this error on build stage:
chown: invalid user: ‘odoo:odoo’ The command '/bin/sh -c chown -R odoo:odoo /odoo' returned a non-zero code: 1
- When updating the Dockerfile's image to
ghcr.io/camptocamp/odoo-project:14.0-latest
, building the image works but got this error after tryingdocker-compose up
:Error response from daemon: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: exec: "docker-entrypoint.sh" executable file not found in $PATH: unknown
Hello @aleprovencio , i have the same problem, did you find any solution ?
I've updated the image on the Dockerfile to ghcr.io/camptocamp/odoo-project:15.0-latest
and than used the test-compose.yml
instead of docker-compose.yml and it ran successfully.
With the docker-compose.yml I was getting the chown .....
error too.
Thanks a lot, it works also for me when i used test-compose.yml
Thanks for the input guys and no, I still haven't found a solution @khalidchamakh
The problem is in the image in the registry. The last update of f.e. for 15.0 was done on 21.10.20221. If you will check content of the "docker-odoo-project/15.0/Dockerfile" file, you will see that there is no odoo user creation command was there on 21.10.2021. https://github.com/camptocamp/docker-odoo-project/blob/6fa0aee98b145b58dab0309d6866f0e0f9ec08d4/15.0/Dockerfile
So, image camptocamp/odoo-project:15.0-latest
should be rebuilt and pushed to the registry to be compatible with latest changes in the example. But I deliver only camptocamp authorized users can do that.
UPDATE! I am speaking about the odoo image on Dockerhub, because the example still has reference to It camptocamp/odoo-project:<version>-latest
instead of ghcr.io/camptocamp/odoo-project:<version>-latest