Docker Hub - Create imageApril 11, 2021 | Cluster
Create an image on Docker Hub, there are other ways of creating images. But, the following is based on a "Dockerfile".
"cd" into the directory of your Dockerfile, which is the formula for your image, and execute the following line:
docker build -t <your_username>/my-private-repo .
After this operation you have created a local image/container. Before publishing anything public, you would probably test and se if the container is working properly:
docker run <your_username>/my-private-repo
Login to Docker Hub:
docker login --username=your_username
After that you can publish the container:
docker push <your_username>/my-private-repo