Update ubuntu to 18.04

This commit is contained in:
khs1994
2018-12-19 17:24:52 +08:00
parent 4d38aaad3b
commit af7663bd61
7 changed files with 22 additions and 18 deletions

View File

@@ -6,7 +6,7 @@
```bash
$ docker container ls -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
7691a814370e ubuntu:14.04 "/bin/bash" 36 hours ago Exited (0) 21 hours ago test
7691a814370e ubuntu:18.04 "/bin/bash" 36 hours ago Exited (0) 21 hours ago test
$ docker export 7691a814370e > ubuntu.tar
```

View File

@@ -11,7 +11,7 @@
例如,下面的命令输出一个 “Hello World”之后终止容器。
```bash
$ docker run ubuntu:14.04 /bin/echo 'Hello world'
$ docker run ubuntu:18.04 /bin/echo 'Hello world'
Hello world
```
@@ -20,7 +20,7 @@ Hello world
下面的命令则启动一个 bash 终端,允许用户进行交互。
```bash
$ docker run -t -i ubuntu:14.04 /bin/bash
$ docker run -t -i ubuntu:18.04 /bin/bash
root@af8bae53bdd3:/#
```

View File

@@ -11,7 +11,7 @@
```bash
docker container ls -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
ba267838cc1b ubuntu:14.04 "/bin/bash" 30 minutes ago Exited (0) About a minute ago trusting_newton
ba267838cc1b ubuntu:18.04 "/bin/bash" 30 minutes ago Exited (0) About a minute ago trusting_newton
98e5efa7d997 training/webapp:latest "python app.py" About an hour ago Exited (0) 34 minutes ago backstabbing_pike
```