Docker Documentation References:
The purpose of this kata is to familiarize yourself with the process of executing commands inside an active docker container.
In this exeercise we will start a container and execute the ps
command on the running container and then stop the container.
Command
docker start docker_katas_nginx
Output
thought:DockerKata rich$ docker start docker_katas_nginx
docker_katas_nginx
Command
docker exec docker_katas_nginx ps
Output
thought:DockerKata rich$ docker exec docker_katas_nginx ps
PID USER TIME COMMAND
1 root 0:00 nginx: master process nginx -g daemon off;
7 nginx 0:00 nginx: worker process
8 root 0:00 ps
Command
docker stop docker_katas_nginx
Output
thought:DockerKata rich$ docker stop docker_katas_nginx
docker_katas_nginx