1. You change the container name (which is being copied in other name so you have to remove the original one at the end after port mapping)
  2. Push to your docker hub
  3. Port mapping
  4. Remove the original one ( This is for storage saving, if yours is big, this one’s not necessary)

Oh gosh it took me ages to push my image to Docker hub and then port mapped and then remove the duplicated container ID.

1.PNG

As you can see, the authentication has denied. I login but still it didn’t work.

I referenced quite many pages, but I cannot find it from my visited websites, since there are too many. I can only remember few of them.

https://graycha.tistory.com/203

But these were helpful.

docker ps -a

This is to check all of my container info including container ID, Image, Command, Created, Status, Ports and Names.