3 ms·
As sibling says, run mysql in a container. Configure the container without any attached volumes, so that the data is stored in the container itself. Run your
by abraae 5y ago
As sibling says, run mysql in a container.
Configure the container without any attached volumes, so that the data is stored in the container itself.
Run your setup scripts, and get the database the way you want it.
Now commit the changes to the container, to create a new container.
Now you can spin up the new container, and your setup data will be already loaded within it.