docker in docker

1
2
3
4
5
6
7
sudo docker pull docker:dind
sudo docker run -itd --privileged --name master docker:dind
sudo docker run -itd --privileged --name master docker:18.06-dind
## 修改国内源
sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g'/etc/apk/repositories
## 清缓存
echo 1 > /proc/sys/vm/drop_caches