Docker: Difference between revisions

From Federal Burro of Information
Jump to navigationJump to search
No edit summary
No edit summary
Line 14: Line 14:


== Quick ==
== Quick ==
list local images


  david@keres ~ $ docker images
  david@keres ~ $ docker images
Line 21: Line 23:
  david@keres ~ $
  david@keres ~ $


list images
start an image
 
docker start 7f09d45df511
starts detached
 
results in a "container"
 
run a container:
 
docker run
starts with stdin + stdout to you now ( attached , interactive )
 
list running instances


  docker ps
  docker ps
  docker ps -a
  docker ps -a

Revision as of 18:32, 10 August 2016

Control and configure Docker with systemd


https://github.com/jpetazzo/nsenter


http://stackoverflow.com/questions/19234831/where-are-docker-images-stored-on-the-host-machine

https://docs.docker.com/engine/examples/mongodb/

https://docs.docker.com/engine/tutorials/dockerimages/


Quick

list local images

david@keres ~ $ docker images
REPOSITORY          TAG                 IMAGE ID            CREATED             SIZE
mongo               latest              7f09d45df511        3 weeks ago         336.1 MB
centos              7                   61b442687d68        7 months ago        196.6 MB
david@keres ~ $

start an image

docker start 7f09d45df511
starts detached

results in a "container"

run a container:

docker run
starts with stdin + stdout to you now ( attached , interactive )

list running instances

docker ps
docker ps -a