Difference between revisions of "Docker"

From knowledgebase
Jump to navigation Jump to search
(Created page with "docker build -t yolo:latest . docker run --name yolo -d yolo tail -f /dev/null docker exec -it yolo bash")
 
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
docker build -t  yolo:latest .
 
docker build -t  yolo:latest .
−
docker run --name yolo -d yolo tail -f /dev/null
+
<br>
 +
docker run --name yolo --net=host -d yolo tail -f /dev/null
 +
<br>
 
docker exec -it yolo bash
 
docker exec -it yolo bash

Latest revision as of 11:27, 7 August 2022

docker build -t yolo:latest .
docker run --name yolo --net=host -d yolo tail -f /dev/null
docker exec -it yolo bash