Manageiq: Docker container only works in an ephemeral fashion

Created on 19 Jul 2017  路  4Comments  路  Source: ManageIQ/manageiq

I noticed the Dockerfile has VOLUME [ "/var/opt/rh/rh-postgresql95/lib/pgsql/data" ], so I mounted a host directory to this volume to persist the data.

However, recreating a container with the same host directory mounted will bring a broken container.

Steps to reproduce the issue:

# this container works fine
$ docker --name manageiq -d -p 80:80 -p 443:443 -v /var/data:/var/opt/rh/rh-postgresql95/lib/pgsql/data manageiq/manageiq:fine-2 

$ docker stop manageiq

$ docker rm manageiq

# this container does not work
$ docker --name manageiq -d -p 80:80 -p 443:443 -v /var/data:/var/opt/rh/rh-postgresql95/lib/pgsql/data manageiq/manageiq:fine-2 

Is the Docker container design here take persistent into consideration?

stale

Most helpful comment

any news on this ?

All 4 comments

any news on this ?

This issue has been automatically marked as stale because it has not been updated for at least 6 months.

If you can still reproduce this issue on the current release or on master, please reply with all of the information you have about it in order to keep the issue open.

Thank you for all your contributions!

@meng-tian is this still a valid issue. If not can you close.
If there's no update by next week, I'll be closing this issue.

Closing issue. If you feel the issue needs to remain open, please let me know and it will be reopened.
@miq-bot close_issue

Was this page helpful?
0 / 5 - 0 ratings

Related issues

durandom picture durandom  路  8Comments

ITD27M01 picture ITD27M01  路  6Comments

zhitongLBN picture zhitongLBN  路  6Comments

Nadkine picture Nadkine  路  7Comments

ahrechushkin picture ahrechushkin  路  8Comments