Create image from container and push it to Docker Hub

Hi guys,

Today we will explain:

  • How to create an image from a modified container
  • How to publish an image on Docker Hub for everyone to download it

Commands Used

docker run -it debian bash (modify the container)
docker ps –a
docker commit cont_id new_deb
docker images
docker tag new_deb hackersacademy/new_deb (replace hackersacademy with your own repository name)
docker images
docker login
docker push hackersacademy/new_deb
docker search hackersacademy