This commit is contained in:
Kumar Sahaj 2023-09-20 14:46:07 +00:00
parent 8fd3f5875e
commit 2833fcea47

View File

@ -57,7 +57,8 @@ sudo docker --version
``` ```
docker build -t <IMG_NAME> . <!--If the directory of the dockerfile and the present directory is same--> docker build -t <IMG_NAME> .
<!--If the directory of the dockerfile and the present directory is same-->
docker build -f <PATH_TO_DOCKERFILE> -t <IMG_NAME> <DOCKERFILE DIRECTORY> docker build -f <PATH_TO_DOCKERFILE> -t <IMG_NAME> <DOCKERFILE DIRECTORY>
<!--If the directory of the dockerfile and the present directory is not same--> <!--If the directory of the dockerfile and the present directory is not same-->
@ -117,7 +118,7 @@ sudo docker run -d --runtime=sysbox-runc --net=host -P 5018bee64419
image. In this case, it starts the systemd initialization process. image. In this case, it starts the systemd initialization process.
### Why Sysbox Is Used ? ## Why Sysbox Is Used ?
+ When you run Docker containers inside a Docker container (DinD), the inner containers typically share + When you run Docker containers inside a Docker container (DinD), the inner containers typically share
the same Docker daemon as the host and other containers. This can lead to security and isolation concerns. the same Docker daemon as the host and other containers. This can lead to security and isolation concerns.