docker学习笔记(二)-dockerfile docker仓库

 

 

dckerfile2这样写才对,不然打印的是hello $name

例子

登陆https://hub.docker.com

上面是提交到公共仓库

创建本地私有仓库

开启另外一个虚机,将重新构建上传镜像

创建好了镜像直接push会报错,需加配置

加上

重启docker

验证是否push成功

原文地址:https://www.cnblogs.com/apesplan/p/10515626.html