The Container Workflow
Related Videos
Publishing a Container Image & The Workflow
To summarize the previous lessons a simple workflow of creating container images may look like this:
- Login with
docker login <your-dockerhub-username>
- Change application code and/or change the
Dockerfile
- Create a local image with
docker image build -t <your-image> .
- Test your local image with
docker run -p <computer-port>:<container-port> <your-image>
- Tag your image with
docker tag <your-image> <your-dockerhub-username>/<your-image>:<tag>
- Push the tagged image with
docker push <your-dockerhub-username>/<your-image>:<tag>