# yum install docker # chkconfig docker on # service docker start # systemctl enable docker.service
# docker search [検索ワード]
# docker pull [イメージ]
# docker images REPOSITORY TAG IMAGE ID CREATED SIZE docker.io/jwilder/nginx-proxy latest 0951ca3d8b69 5 days ago 247.5 MB docker.io/meanjs/mean latest 919ddbf406fc 10 days ago 763.4 MB
# docker run --name [コンテナ名] [イメージ] [コマンド] ex) $ docker run --name centos01 -i -t centos /bin/bash
# docker ps
# docker stats コンテナ名, コンテナ名,...
# docker top コンテナ名
# docker start [コンテナID]
# docker stop [コンテナID]
# docker restart [コンテナID]
# docker exec -it mycentos /bin/bash
# docker stop $(docker ps -q)
# docker rm $(docker ps -aq)
# docker rmi `docker images -aq`
# docker pull centos # docker run -i -t centos /bin/bash
# docker pull docker pull greyltc/lamp # docker run --name lamp01 -p 80:80 -p 443:443 -d greyltc/lamp