Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Container only starts once. #2410

Closed
phpguru opened this issue Dec 1, 2016 · 1 comment
Closed

Container only starts once. #2410

phpguru opened this issue Dec 1, 2016 · 1 comment

Comments

@phpguru
Copy link

phpguru commented Dec 1, 2016

I'm on Windows 10, Docker 1.12.3 (8488) using the percona:latest image:tag.

First time, I run the container:

docker run -d -e APP=db -v /C/Users/myuser/mysql_data:/var/lib/mysql -e \
MYSQL_ROOT_PASSWORD=pass -e MYSQL_DATABASE=db \
-e MYSQL_USERNAME=user -e MYSQL_PASSWORD=pass \
--name=db -p 3306:3306 db:latest

Awesome, up and running in a jiffy! Super excellent.

I go home and fire it up the next day, to exited state only.

docker logs 

says

[ERROR] --initialize specified but the data directory has files in it. Aborting.

So how do I use the container on runs 2-N ?

@phpguru
Copy link
Author

phpguru commented Dec 1, 2016

My apologies. Wrong project! Filed here instead.

@phpguru phpguru closed this as completed Dec 1, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant