[root@master ]# docker login 192.168.0.16 Username: admin Password: WARNING! Your password will be stored unencrypted in /root/.docker/config.json. Configure a credential helper to remove this warning. See https://docs.docker.com/engine/reference/commandline/login/#credentials-store
Login Succeeded
# 推送私有镜像 # 先修改本地镜像tag [root@master ]# docker tag java-web-demo:1.0 192.168.0.16/library/java-web-demo:1.0