.oO turn on ~ tune in ~ drop out Oo.
Maintaining Docker Containers
Maintaining Docker Containers

Maintaining Docker Containers

List containers (incl. stopped containers):

docker ps -a

Remove containers:

docker -rm CONTAINERID

Create new image from a container:

docker commit CONTAINERID IMAGENAME

List Docker images:

docker image ls

Remove unused images:

docker image prune

Remove a Docker image:

docker image rm IMAGE

Run Docker:

docker run --tty --interactive --publish 8443:443 khaleesi /bin/bash

or simply

docker run -tip 8443:443 khaleesi /bin/bash

Start (Resume) Docker:

docker start --attach --interactive CONTAINERID

or simply

docker start -ai CONTAINERID