Skip to content
This repository has been archived by the owner on Jul 5, 2022. It is now read-only.

Quick Start

雾雨 edited this page Sep 10, 2020 · 10 revisions
  1. Install barrel
  2. Create docker network
# driver and ipam-driver name is fixed, don't change them
# subnet should be one cidr address of calico ip-pool
docker network create --ipam-driver calico-ipam --driver calico --subnet 10.1.0.0/16 barrelnet
  1. Create fixed ip container and start it, recording its ip
docker run --label fixed-ip --network barrelnet busybox:latest /bin/ash
  1. Stop the fixed container and restart it to check whether the ip is changed
  2. Remove the container and check whether the ip is released
calicoctl ipam show --ip 10.1.0.1
Clone this wiki locally