bootkube redner出来的manifests, 把非docker hub上的image重新打上tag,并取代原有的iamge名称,最后打包成asset.tar.docker build -t bootkube-render:latest .
docker run --rm \
-v `pwd`/out:/out \
-e "BOOTKUBE_ETCD_SERVERS=https://192.168.60.125:2379" \
-e "BOOTKUBE_API_SERVERS=https://192.168.60.125:443" \
-e "TAG_PREFIX=henryrao" \
bootkube-render:latest /tar_asset.sh
docker run --rm \
-v /var/run/docker.sock:/var/run/docker.sock \
-v /usr/bin/docker:/usr/bin/docker \
-v /usr/lib64/:/opt/lib64/ \
-v /root/.docker/config.json:/root/.docker/config.json \
-e TAG_PREFIX=henryrao \
--net=host \
--pid=host \
--privileged \
bootkube-render:latest /retag.sh
docker run --rm -it -e TAG_PREFIX=henryrao -v `pwd`/out:/out bootkube-render:latest /list-images.sh
cat out/images
Content type
Image
Digest
Size
56.5 MB
Last updated
over 9 years ago
docker pull jaohaohsuan/bootkube-render