Update demo image version

pull/350/head
khs1994 2018-07-10 08:09:10 +08:00
parent 8f46e579f4
commit fb66c7e5ee
2 changed files with 7 additions and 7 deletions

View File

@ -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

View File

@ -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
```