Docker Cookbook

From Littledamien Wiki
Revision as of 04:29, 22 May 2018 by Video8 (talk | contribs)
Jump to navigation Jump to search

View all running containers

$ docker ps

Stopping containers

Stop all containers

$ docker stop

Stop a specific container by id

$ docker stop [CONTAINER_ID]

Managing images

List all images: [1]

$ docker images

Viewing files in a container

$ docker exec -t -i mycontainer /bin/bash

Exit the connection and return to the regular local filesystem command prompt with exit.

See also