Wiki: Docker Connect wiki page

Docker for Bytesized Connect

Sometimes you want to finer control over the applications that BCD manages for you. Here are some useful commands.

docker ps -a - Lists all docker containers.

docker restart/stop/start <CONTAINERID> - Control a container directly.

docker exec <CONTAINERID> - Run a command inside the container.

docker exec -it <CONTAINERID> bash -l - "Enter" the container, spawning a bash shell so you can look around.

for c in $(docker ps -a | awk ' { print $1 }'); do docker start $c 2> /dev/null;done - Start all Docker containers.

docker stats - Shows real time container resource utilisation (cpu, memory, disk & network I/O).


Last Author Contributors Versions Last update
dochemlock Maran 5 Thu, 11 May 2017 22:49:31 +0200