Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
work:docker [2021/12/08 22:32] magsilvawork:docker [2021/12/09 01:51] (current) magsilva
Line 24: Line 24:
 An alternative to run nested docker instances is to use ''dind'' (Docker In Docker). You should use the docker image 'dind' with a privileged host: An alternative to run nested docker instances is to use ''dind'' (Docker In Docker). You should use the docker image 'dind' with a privileged host:
   - ''docker run --privileged -d --name dind-test docker:dind''   - ''docker run --privileged -d --name dind-test docker:dind''
- 
  
 ==== Build new image ==== ==== Build new image ====
Line 30: Line 29:
   - Run ''docker build -t <image name>'' <directory with Dockerfile>''   - Run ''docker build -t <image name>'' <directory with Dockerfile>''
  
 +==== Debugging running containers ====
 +  - Find the running container id. You may use the command ''docker ps'' to list the running ones.
 +  - Enter into the running container: ''docker exec -it <container id> /bin/bash
  
 ==== References ==== ==== References ====
   * https://devopscube.com/run-docker-in-docker/   * https://devopscube.com/run-docker-in-docker/