docker 高級命令:在容器(centos:7) 后臺-d? ? 路徑?/bin/sh? ??
里寫文件?-c "while ture;do echo hello zzyy;sleep 2;done"
sudo docker run -d centos:7 /bin/sh -c "while ture;do echo hello zzyy;sleep 2;done"
docker 命令:查詢?nèi)罩?/p>
sudo docker logs IMAGE ID
docker 高級命令:在容器(centos:7) 后臺-d? ? 路徑?/bin/sh? ??
里寫文件?-c "while ture;do echo hello zzyy;sleep 2;done"
sudo docker run -d centos:7 /bin/sh -c "while ture;do echo hello zzyy;sleep 2;done"
docker 命令:查詢?nèi)罩?/p>
sudo docker logs IMAGE ID