dockerhub 推送镜像
Posted liweiming
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了dockerhub 推送镜像相关的知识,希望对你有一定的参考价值。
登录dockerhub
[[email protected]:/home] > docker login Login with your Docker ID to push and pull images from Docker Hub. If you don‘t have a Docker ID, head over to https://hub.docker.com to create one. Username (liweiming0611): Password: Login Succeeded 搜索账户镜像: [[email protected]-node1:/home] > docker search liweiming0611 NAME DESCRIPTION STARS OFFICIAL AUTOMATED liweiming0611/kubernetes-app app 0 liweiming0611/k8s-nginx nginx 0 [[email protected]-node1:/home] > docker tag centos:6 liweiming0611/kubernetes-app:centos-6 [[email protected]-node1:/home] > docker image ls REPOSITORY TAG IMAGE ID CREATED SIZE 192.168.31.149/shop/nginx v1 9e2c5d78dc31 3 weeks ago 24.6MB alpine nginx 9e2c5d78dc31 3 weeks ago 24.6MB liweiming0611 latest 9e2c5d78dc31 3 weeks ago 24.6MB liweiming0611/k8s-app nginx 9e2c5d78dc31 3 weeks ago 24.6MB liweiming0611/k8s-nginx nginx 9e2c5d78dc31 3 weeks ago 24.6MB liweiming0611/kubernetes-app nginx-0.0.1 9e2c5d78dc31 3 weeks ago 24.6MB liweiming0611/kubernetes-app nginx-v0.0.1 9e2c5d78dc31 3 weeks ago 24.6MB 192.168.31.149/shop/nginx 1.12 455672184126 5 weeks ago 520MB alpine latest 3f53bb00af94 7 weeks ago 4.41MB centos 6 0cbf37812bff 4 months ago 194MB liweiming0611/kubernetes-app centos-6 0cbf37812bff 4 months ago 194MB [[email protected]-node1:/home] > docker push liweiming0611/kubernetes-app:centos-6 The push refers to repository [docker.io/liweiming0611/kubernetes-app] 5d574ede99e4: Mounted from library/centos centos-6: digest: sha256:2fdf04f5ab497275968ce8e4045f540199f11366d8cfaf33581319a3eefbd501 size: 529
以上是关于dockerhub 推送镜像的主要内容,如果未能解决你的问题,请参考以下文章
docker打包镜像操作以及如何把镜像push至DockerHub
将Go语言编写的HttpServer部署到Docker并推送到DockerHub
将Go语言编写的HttpServer部署到Docker并推送到DockerHub