Posts

Showing posts from October, 2018

Docker command line cheatsheet

From the host machine, you can list all docker containers: $ docker container ls CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES a23456 mydocker/hello-world:latest "sh -c /run.sh" 1 day ago Up 1 day 32867 ecs-hello-world a12345 amazon/amazon-ecs-agent:latest "/agent" 3 months ago Up 3 months ecs-agent Then, to access a running Docker container's shell: $ docker exec -it a23456 /bin/sh We can get a list of processes running inside the container by using the "ps" command. But Busybox (common, very minimal Linux OS) inside Docker container shell doesn't show the full command (display is truncated), and ps auxwww doesn't work. The solution is to set th