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

 

 

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

例子

登陆https://hub.docker.com

上面是提交到公共仓库

创建本地私有仓库

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

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

加上

重启docker

验证是否push成功

 

posted @ 2019-03-12 11:34  apesplan  阅读(129)  评论(0编辑  收藏  举报