mirror of
https://github.com/yeasy/docker_practice.git
synced 2024-11-28 01:08:53 +00:00
Update demo image version
This commit is contained in:
parent
8f46e579f4
commit
fb66c7e5ee
@ -27,7 +27,7 @@ tmpfs on /etc/resolv.conf type tmpfs ...
|
|||||||
这样每次启动的容器 DNS 自动配置为 `114.114.114.114` 和 `8.8.8.8`。使用以下命令来证明其已经生效。
|
这样每次启动的容器 DNS 自动配置为 `114.114.114.114` 和 `8.8.8.8`。使用以下命令来证明其已经生效。
|
||||||
|
|
||||||
```bash
|
```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 114.114.114.114
|
||||||
nameserver 8.8.8.8
|
nameserver 8.8.8.8
|
||||||
|
@ -182,15 +182,15 @@ $ docker login docker.domain.com
|
|||||||
尝试推送、拉取镜像。
|
尝试推送、拉取镜像。
|
||||||
|
|
||||||
```bash
|
```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
|
```bash
|
||||||
$ docker logout docker.domain.com
|
$ 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
|
no basic auth credentials
|
||||||
```
|
```
|
||||||
|
Loading…
Reference in New Issue
Block a user