docker运行名称
docker run --name <container name> -dp <local port>:<container port> <image>
如何构建docker镜像
docker build <Dockerfile path> -t image-name
docker在容器上运行命令
sudo docker exec -it <container name> <command>
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 load --input fedora.tar
$ docker load -i fedora.tar
docker运行镜像
docker run <image id> --name 'container name'