# run the image $ docker run -p 41960:8083 -d monitor
# view container list $ docker ps -a
# view node.js application Running on http://localhost:8083
发布镜像到私有仓库
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
# 修改镜像 tag $ docker tag monitor 10.134.120.xx/monitor
# 发布镜像到私有仓库 $ docker push 10.134.120.xx:5000/monitor The push refers to repository [10.134.120.xx:5000/monitor] Get https://10.134.120.xx:5000/v2/: http: server gave HTTP response to HTTPS client
# 出现推送失败,Docker在1.3.x之后默认docker registry使用的是https,修改docker启动配置文件 $ vim /etc/docker/daemon.json # 增加如下内容 # {"insecure-registries":["10.134.120.xx:5000"]}