Skip to content

Latest commit

 

History

History
33 lines (22 loc) · 1.67 KB

building-and-pushing-docker-images.md

File metadata and controls

33 lines (22 loc) · 1.67 KB

Building and Pushing Docker Images

This step will walk you through building and pushing your Docker image to your container registry. This is useful to building custom images for your use case.

  1. Clone the docker-application-template:
git clone https://github.com/swanchain/docker-application-template.git
  1. Navigate to the root of the cloned repo:
cd docker-application-template
  1. Build the Docker image (example: filswan/helloworld:v1.0):
docker build --platform linux/amd64 --tag <username>/<repo>:<tag> .
  1. Push your container registry:
docker push <username>/<repo>:<tag>

Note: After completing the above process, you can view the image information on the docker hub, as shown below: