CAPTAINS - DOCKER
type: channel
link: https://captains.top/index.php/tag/DOCKER/
items: DOCKER 镜像导入导出
items: DOCKER指定网络

DOCKER 镜像导入导出
type: item
date: 2021-07-23T08:03:00+00:00
description: docker镜像导出# 单个镜像 docker save -o nginx.tgz nginx:latest # 或多个镜像 docker save -o images.tgz nginx:latest zookeeper:latestdocker 镜像导入docker load -i nginx.tgz

DOCKER指定网络
type: item
date: 2021-07-20T15:01:00+00:00
description: docker创建网络# 创建容器，指定网段 docker network create --subnet=172.20.0.0/16 mynetwork # 创建容器固定ip docker run -itd --name nginx-slb01 --net mynetwork --ip 172.20.0.10 -p 8010:80 nginx:1.18.0