{"id":1856,"date":"2024-01-17T09:52:18","date_gmt":"2024-01-17T03:52:18","guid":{"rendered":"http:\/\/techsatwork.com\/?p=1856"},"modified":"2024-01-17T09:52:19","modified_gmt":"2024-01-17T03:52:19","slug":"how-to-upload-a-docker-image-to-docker-hub","status":"publish","type":"post","link":"https:\/\/techsatwork.com\/?p=1856","title":{"rendered":"How to upload a docker image to Docker Hub"},"content":{"rendered":"\n<p>Lets upload the docker image you build locally to docker hub so you or others can pull it at a later time to use. I am assuming you already have a login to <a href=\"http:\/\/hub.docker.com\">docker hub<\/a>. If not please create an account. Its free !!\u00a0<\/p>\n<ol>\n<li>From a command prompt type:<br \/><br \/><span style=\"color: #ff6600;\">docker images<\/span><br \/><br \/>This will list out all the docker images you have on your machine including the one you build.\u00a0<\/li>\n<li>Now create a tag for the image you created. \u00a0On the previous post I named it Jupyter-notebook:<br \/><br \/><span style=\"color: #ff6600;\">docker tag jupyter_notebook:latest rajupillai\/jupyter_notebook:latest<\/span><br \/><br \/><\/li>\n<li>Now lets check if the new tagged image is created :<br \/><br \/><span style=\"color: #ff6600;\">docker images<\/span><br \/><br \/>You should see the one you created with the tag<\/li>\n<li>Lets push this image to the hub :<br \/><br \/>\n<p><span style=\"color: #ff6600;\">docker push rajupillai\/jupyter_notebook:latest<br \/><\/span><\/p>\n<\/li>\n<li>If you want to make it public , so anyone can download it then :<br \/>\n<ul>\n<li>Go to <a target=\"_new\" rel=\"noopener\">Docker Hub<\/a> and log in.<\/li>\n<li>Click on your profile icon and go to <code>Repositories<\/code>.<\/li>\n<li>Click on your repository (<span style=\"color: #ff6600;\">rajupillai\/jupyter_notebook<\/span>\u00a0in the example).<\/li>\n<li>Click on the <code>Settings<\/code> tab for the repository.<\/li>\n<li>Under <code>Visibility<\/code>, select <code>Public<\/code>.<\/li>\n<li>Save the changes.<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n<p>If you or anyone want to pull this to a new machine all you have to do now is :<br \/><br \/><span style=\"color: #ff6600;\">docker pull rajupillai\/jupyter_notebook:latest<\/span><br \/><br \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Lets upload the docker image you build locally to docker hub so you or others can pull it at a later time to use. I am assuming you already have a login to docker hub. If not please create an account. Its free !!\u00a0 From a command prompt type: docker images This will list out [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"site-container-style":"default","site-container-layout":"default","site-sidebar-layout":"default","site-transparent-header":"default","disable-article-header":"default","disable-site-header":"default","disable-site-footer":"default","disable-content-area-spacing":"default","footnotes":""},"categories":[1053,1052],"tags":[1054,1055,1049],"class_list":["post-1856","post","type-post","status-publish","format-standard","hentry","category-docker","category-python","tag-docker","tag-jupyter-notebook","tag-python"],"_links":{"self":[{"href":"https:\/\/techsatwork.com\/index.php?rest_route=\/wp\/v2\/posts\/1856","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/techsatwork.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/techsatwork.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/techsatwork.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/techsatwork.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1856"}],"version-history":[{"count":2,"href":"https:\/\/techsatwork.com\/index.php?rest_route=\/wp\/v2\/posts\/1856\/revisions"}],"predecessor-version":[{"id":1858,"href":"https:\/\/techsatwork.com\/index.php?rest_route=\/wp\/v2\/posts\/1856\/revisions\/1858"}],"wp:attachment":[{"href":"https:\/\/techsatwork.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1856"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/techsatwork.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1856"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/techsatwork.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1856"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}