vim /etc/sysconfig/docker-storage
DOCKER_STORAGE_OPTIONS='--storage-driver=zfs'docker
vim /etc/sysconfig/docker
OPTIONS='--graph=/local/docker'vim
mkdir -p /local/dockerrest
zfs create -o mountpoint=/local/docker tank/dockerip
systemctl start dockerget
docker pull busyboxit
docker run --name=lmy -it busybox /bin/shservice
docker ps -lim
zfs snap -r tank/docker@xxxdi
rm -rf /local/dockerpoi
zfs rollback -r tank/docker@xxx
systemctl restart docker
docker start -i lmy
pull 不下來image
`mkdir -p /etc/systemd/system/docker.service.d/;
echo "[Service]" > http-proxy.conf;
echo Environment="HTTP_PROXY=http:<your proxy ip>/" > http-proxy.conf`
/etc/sysconfig/docker中--graph參數, 即docker的root目錄不能是默認的/var/lib/docker
不然zfs rollback 以後restart 會失敗, 目前還不知道緣由.
zfs rollback 以後必須先restart docker, 若是直接start container會報錯.