Professional Documents
Culture Documents
Containers
Command Reference:
https://gist.github.com/initcron/08108141438895252de8
Objectives
web app
Checking Status
$ docker ps
Port Mapping
container
$ docker-machine ip default
Validate
http://docker_machine_ip:port
Checking Logs
$ docker logs <container_id>
Show Process Table
$ docker top <container_id>
Show Run Stats
$ docker stats --no-stream=true
<container_id>
Inspecting Container
$ docker inspect <container_id>
Copy Files to and From
Container
$ touch localfile
$ docker cp localfile <container_id>:/opt/
$ docker cp <container_id>:/opt/webapp .
$ docker diff <container_id>
Rename a Container