docker image v14, cannot attach 2 volumes to persist data
Nobody has claimed this yet.
- Dominant language
- Dockerfile
- Stars
- 1.2k
- Forks
- 1.7k
- PR merge metrics
- No merged PRs in 30d
Description
Using Ubuntu 20.04.1. Latest docker images for odoo and postgres.
I run postgres in a separate container.
This code run fine:
sudo docker run -v $HOME/docker_data/odoo/etc/odoo:/etc/odoo -p 8069:8069 --name odoo --link postgres:postgres -t odoo
The above only have -v pointing to the location of odoo.conf file.
BUT, to save the product images uploaded, I believe I need to also map docker container /var/lib/odoo to the host. So now I have this:
sudo docker run -v $HOME/docker_data/odoo/etc/odoo:/etc/odoo -v $HOME/docker_data/odoo/var/lib/odoo:/var/lib/odoo -p 8069:8069 --name odoo --link postgres:postgres -t odoo
Docker will run, but will get stuck at:
odoo.service.server: HTTP service (werkzeug) running on xxxx:8069
Then, if I try to access the webpage, the docker log will show:
odoo.http: HTTP Configuring static files
And it just stuck there forever. I have checked to make sure $HOME/docker_data/odoo/var/lib/odoo directory exists on the host machine.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the two docker run commands on Ubuntu 20.04.1 and compare the container logs when /var/lib/odoo is mounted. Check the mounted directory's accessibility and contents, then confirm the web service responds and uploaded product images persist after the container is restarted.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- docker
- Domain
- devops
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100