Update demo image version
parent
8f46e579f4
commit
fb66c7e5ee
|
@ -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
|
||||
|
|
|
@ -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
|
||||
```
|
||||
|
|
Loading…
Reference in New Issue