docker วิ่งชื่อ
docker run --name <container name> -dp <local port>:<container port> <image>
docker ประมวลผลคำสั่งบนตู้คอนเทนเนอร์
sudo docker exec -it <container name> <command>
วิ่ง docker
docker run -d -p 80:80 docker/getting-started
docker องวิ่งมาตลอดเรืองวางแผน
docker run --network host
When running using --network host there is no need to map the ports.
All the docker container ports will be available since the network host mode
makes the container use the host's network stack.
docker มัธง
docker container run -it ubuntu bash
เริ่มต้น docker ตู้คอนเทนเนอร์
$ docker start <container_id>