Update docker
This commit is contained in:
parent
9c98fcd57f
commit
302a857328
@ -27,8 +27,12 @@ done
|
|||||||
shift $((OPTIND-1))
|
shift $((OPTIND-1))
|
||||||
|
|
||||||
# create zfs filesystems
|
# create zfs filesystems
|
||||||
zfs create -o com.sun:auto-snapshot=false -o mountpoint=/var/lib/docker $ZPOOL/docker
|
if [ ! $(zfs list $ZPOOL/docker) ]; then
|
||||||
zfs create -o com.sun:auto-snapshot=true -o mountpoint=/portainer $ZPOOL/portainer
|
zfs create -o com.sun:auto-snapshot=false -o mountpoint=/var/lib/docker $ZPOOL/docker
|
||||||
|
fi
|
||||||
|
if [ ! $(zfs list $ZPOOL/portainer) ]; then
|
||||||
|
zfs create -o com.sun:auto-snapshot=true -o mountpoint=/portainer $ZPOOL/portainer
|
||||||
|
fi
|
||||||
|
|
||||||
# add docker repository
|
# add docker repository
|
||||||
apt-key adv --fetch-keys https://download.docker.com/linux/debian/gpg
|
apt-key adv --fetch-keys https://download.docker.com/linux/debian/gpg
|
||||||
@ -40,7 +44,7 @@ DEBIAN_FRONTEND=noninteractive DEBIAN_PRIORITY=critical apt install -y -qq --no-
|
|||||||
|
|
||||||
# install portainer
|
# install portainer
|
||||||
cd /portainer
|
cd /portainer
|
||||||
mkdir data
|
mkdir -p data
|
||||||
cat << EOF > /portainer/docker-compose.yml
|
cat << EOF > /portainer/docker-compose.yml
|
||||||
version: '3.2'
|
version: '3.2'
|
||||||
services:
|
services:
|
||||||
|
Loading…
Reference in New Issue
Block a user