2.3 KiB
Typical Docker workflow
① Get your code and its dependencies into Docker containers.
- Write a Dockerfile that defines the execution environment and pulls in your code.
- If your app depends on external services (such as Redis or MySQL), find them on a registry like Docker Hub, and refer to them in a Docker Compose file, along with a call to your app, so they'll run simultaneously.
- Software providers also distribute paid software on the Docker Store.
- Build, then run your containers on a virtual host with Docker Machine as you develop.
② Configure [networking](engine/tutorials/networkingcontainers.md) and [storage](engine/tutorials/dockervolumes.md) for your solution, if needed.
③ Upload builds to a registry (ours or yours) or your cloud providers to collaborate with your team.
④ To run your app as a set of services across multiple hosts, set up a Swarm cluster and scale it to meet demand. Use Universal Control Plane to manage your swarm in a friendly UI!
⑤ Deploy to your preferred cloud providers with Docker Cloud, or use Docker Datacenter to deploy to your own on-premise hardware.