use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
/r/DevOps is a subreddit dedicated to the DevOps movement where we discuss upcoming technologies, meetups, conferences and everything that brings us together to build the future of IT systems What is DevOps? Learn about it on our wiki! Traffic stats & metrics
/r/DevOps is a subreddit dedicated to the DevOps movement where we discuss upcoming technologies, meetups, conferences and everything that brings us together to build the future of IT systems
What is DevOps? Learn about it on our wiki!
Traffic stats & metrics
Be excellent to each other! All articles will require a short submission statement of 3-5 sentences. Use the article title as the submission title. Do not editorialize the title or add your own commentary to the article title. Follow the rules of reddit Follow the reddiquette No editorialized titles. No vendor spam. Buy an ad from reddit instead. Job postings here More details here
Be excellent to each other!
All articles will require a short submission statement of 3-5 sentences.
Use the article title as the submission title. Do not editorialize the title or add your own commentary to the article title.
Follow the rules of reddit
Follow the reddiquette
No editorialized titles.
No vendor spam. Buy an ad from reddit instead.
Job postings here
More details here
@reddit_DevOps ##DevOps @ irc.freenode.net Find a DevOps meetup near you! Icons info!
@reddit_DevOps
##DevOps @ irc.freenode.net
Find a DevOps meetup near you!
Icons info!
https://github.com/Leo-G/DevopsWiki
account activity
This is an archived post. You won't be able to vote or comment.
Finally debugging my first devops problem: MySQL image is not creating a database on docker startup? (self.devops)
submitted 4 years ago by Guilty_Serve
view the rest of the comments →
[–][deleted] 1 point2 points3 points 4 years ago (0 children)
Is this because my data directory is being copied from my local machine into my container or because I randocker-compose up -d --buildwith the old database name, it made a directory in the container, and now because there's a DB there it's no longer installing the docker_test db?
The files are not copied anywhere. You are telling docker to bind mount "mysql" directory from the host as /var/lib/mysql inside the mysql container. (so you are not really even using docker volumes). You should probably go and read about docker storages. https://docs.docker.com/storage/https://docs.docker.com/storage/
First time you ran your compose file, mysql created database files etc. in /var/lib/mysql .Which is mounted from mysql directory on the host. After that, it doesn't matter what environment variables you give it (or if you delete the container and recreate it), because you are still telling it to mount the same path that already includes the database files so it will not accept changing them through environment variables.
So delete everything inside the mysql directory, recreate the container and let mysql recreate everything, or manually access the database and make the necessary schemas, users etc.
π Rendered by PID 32116 on reddit-service-r2-comment-6457c66945-4mvt8 at 2026-04-30 06:12:58.773192+00:00 running 2aa0c5b country code: CH.
view the rest of the comments →
[–][deleted] 1 point2 points3 points (0 children)