Running container

Figure 1104. Starting Nextcloud container Slide presentation
> docker run -d -p 8080:80 --name nc13 nextcloud
517e3dba488763eb615f2c68d417e1b7fb3a9ce5bb4a5ffc346dcb86c00d13d2

Figure 1105. List running containers Slide presentation
> docker ps -a  # show stopped containers as well
CONTAINER ID  IMAGE      COMMAND                ... PORTS                 NAMES
517e3dba4887  nextcloud  "/entrypoint.sh apac…" ... 0.0.0.0:8080->80/tcp  nc13

Figure 1106. Enter running container Slide presentation
> docker exec -it nextcloud_db_1 /bin/bash
# ls -al
total 84
drwxr-xr-x   1 root root 4096 Jun 20 09:28 .
drwxr-xr-x   1 root root 4096 Jun 20 09:28 ..
-rwxr-xr-x   1 root root    0 Jun 20 09:28 .dockerenv
drwxr-xr-x   1 root root 4096 May 25 20:20 bin
drwxr-xr-x   2 root root 4096 Nov 19  2017 boot
drwxr-xr-x   5 root root  340 Jun 20 09:28 dev
drwxr-xr-x   2 root root 4096 Apr 30 15:37 docker-entrypoint-initdb.d
lrwxrwxrwx   1 root root   34 May 25 20:20 docker-entrypoint.sh -> usr/local/bin/docker-entrypoint.sh
...

Figure 1107. Remove container Slide presentation
> docker rm nc13
nc13
> docker ps -a
CONTAINER ID   IMAGE       COMMAND             CREATED      STATUS                   ... NAMES