I have a container that has a wordpress website and one with MySQL, I need to share this docker with a friend of mine so that he and I have the same development environment. How would it be possible to do this?
I imagine it’s something similar to docker load and docker import
3
Answers
Subscribe hub.docker.com and use your repository to share images.
More informations: https://docs.docker.com/docker-hub/quickstart/
Here is an alternative to the better Docker Hub solution:
Image Export
Image Import
After that you have, by the
docker run
command, to crate the container.I suggest you to use external volumes mapping in order to GZIP and export containers data too.
Since you’re both developers, I’d share the code rather than images. If you both have the code, Dockerfiles and docker-compose files, you can build the containers on your machines.
Use Github or something similar to share the code.
Sharing the images would be a good solution if one of you were a developer and the other weren’t.