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 it标志
docker container run -it ubuntu bash
启动docker容器
$ docker start <container_id>