June 2015
Intermediate to advanced
240 pages
5h 25m
English
Finally, push the image to the Docker registry. So, let's create an image on the local Ubuntu machine:
$ sudo docker run -t -i ubuntu /bin/bash root@9593c56f9e70:/# echo "TEST" >/mydockerimage root@9593c56f9e70:/# exit $ sudo docker commit $(sudo docker ps -lq) vinod-image e17b685ee6987bb0cd01b89d9edf81a9fc0a7ad565a7e85650c41fc7e5c0cf9e
Let's log in to the Docker registry created locally on the Ubuntu machine:
$ sudo docker --insecure-registry=mydomain.com:8080 \ login https://mydomain.com:8080 Username: vinod1 Password: Email: vinod.puchi@gmail.com Login Succeeded
Tag the image before pushing it to the registry:
$ sudo docker tag vinod-image mydomain.com:8080/vinod-image
Finally, use the
Read now
Unlock full access