Dockers: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
Thomas (Diskussion | Beiträge) |
Thomas (Diskussion | Beiträge) |
||
| Zeile 1: | Zeile 1: | ||
=image listen= | =image listen= | ||
| − | *docker images | + | *root@tac:~# docker images |
REPOSITORY TAG IMAGE ID CREATED VIRTUAL SIZE | REPOSITORY TAG IMAGE ID CREATED VIRTUAL SIZE | ||
ubuntu 10.04 3db9c44f4520 10 months ago 183 MB | ubuntu 10.04 3db9c44f4520 10 months ago 183 MB | ||
=image laden= | =image laden= | ||
| − | *docker pull ubuntu:12.04 | + | *root@tac:~# docker pull ubuntu:12.04 |
=image listen= | =image listen= | ||
| − | *docker images | + | *root@tac:~# docker images |
REPOSITORY TAG IMAGE ID CREATED VIRTUAL SIZE | REPOSITORY TAG IMAGE ID CREATED VIRTUAL SIZE | ||
ubuntu 12.04 1f80e9ca2ac3 8 days ago 131.5 MB | ubuntu 12.04 1f80e9ca2ac3 8 days ago 131.5 MB | ||
ubuntu 10.04 3db9c44f4520 10 months ago 183 MB | ubuntu 10.04 3db9c44f4520 10 months ago 183 MB | ||
| + | =perstitent starten des containers mit dem namen humppa= | ||
| + | *root@tac:~# docker run -t -i --name humppa ubuntu:10.04 bash | ||
| + | ==in der maschine== | ||
| + | *root@64f3a5281e7e:/# cat /etc/issue | ||
| + | Ubuntu 10.04 LTS \n \l | ||
| + | *root@64f3a5281e7e:/# exit | ||
| − | + | *docker start -i ubuntu_persistent | |
| + | *root@tac:~# docker start -i humppa | ||
| + | humppa | ||
| + | *root@64f3a5281e7e:/# | ||
*https://www.debinux.de/2014/04/docker-io-grundlagen-zum-interaktiven-arbeiten/ | *https://www.debinux.de/2014/04/docker-io-grundlagen-zum-interaktiven-arbeiten/ | ||
Version vom 1. März 2015, 17:40 Uhr
image listen
- root@tac:~# docker images
REPOSITORY TAG IMAGE ID CREATED VIRTUAL SIZE ubuntu 10.04 3db9c44f4520 10 months ago 183 MB
image laden
- root@tac:~# docker pull ubuntu:12.04
image listen
- root@tac:~# docker images
REPOSITORY TAG IMAGE ID CREATED VIRTUAL SIZE ubuntu 12.04 1f80e9ca2ac3 8 days ago 131.5 MB ubuntu 10.04 3db9c44f4520 10 months ago 183 MB
perstitent starten des containers mit dem namen humppa
- root@tac:~# docker run -t -i --name humppa ubuntu:10.04 bash
in der maschine
- root@64f3a5281e7e:/# cat /etc/issue
Ubuntu 10.04 LTS \n \l
- root@64f3a5281e7e:/# exit
- docker start -i ubuntu_persistent
- root@tac:~# docker start -i humppa
humppa
- root@64f3a5281e7e:/#