From fb66c7e5ee5343b61675f4587eaad5146475ca44 Mon Sep 17 00:00:00 2001 From: khs1994 Date: Tue, 10 Jul 2018 08:09:10 +0800 Subject: [PATCH] Update demo image version --- network/dns.md | 2 +- repository/registry_auth.md | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/network/dns.md b/network/dns.md index c0bca03..a84f90e 100644 --- a/network/dns.md +++ b/network/dns.md @@ -27,7 +27,7 @@ tmpfs on /etc/resolv.conf type tmpfs ... 这样每次启动的容器 DNS 自动配置为 `114.114.114.114` 和 `8.8.8.8`。使用以下命令来证明其已经生效。 ```bash -$ docker run -it --rm ubuntu:17.10 cat etc/resolv.conf +$ docker run -it --rm ubuntu:18.04 cat etc/resolv.conf nameserver 114.114.114.114 nameserver 8.8.8.8 diff --git a/repository/registry_auth.md b/repository/registry_auth.md index ffd2ebd..e1a0fa4 100644 --- a/repository/registry_auth.md +++ b/repository/registry_auth.md @@ -182,15 +182,15 @@ $ docker login docker.domain.com 尝试推送、拉取镜像。 ```bash -$ docker pull ubuntu:17.10 +$ docker pull ubuntu:18.04 -$ docker tag ubuntu:17.10 docker.domain.com/username/ubuntu:17.10 +$ docker tag ubuntu:18.04 docker.domain.com/username/ubuntu:18.04 -$ docker push docker.domain.com/username/ubuntu:17.10 +$ docker push docker.domain.com/username/ubuntu:18.04 -$ docker image rm docker.domain.com/username/ubuntu:17.10 +$ docker image rm docker.domain.com/username/ubuntu:18.04 -$ docker pull docker.domain.com/username/ubuntu:17.10 +$ docker pull docker.domain.com/username/ubuntu:18.04 ``` 如果我们退出登录,尝试推送镜像。 @@ -198,7 +198,7 @@ $ docker pull docker.domain.com/username/ubuntu:17.10 ```bash $ docker logout docker.domain.com -$ docker push docker.domain.com/username/ubuntu:17.10 +$ docker push docker.domain.com/username/ubuntu:18.04 no basic auth credentials ```