1
0
mirror of https://github.com/tteck/Proxmox.git synced 2024-12-29 11:06:17 +02:00

Update docker-install.sh

This commit is contained in:
tteckster 2022-03-20 17:32:32 -04:00 committed by GitHub
parent 426c304275
commit c0babe1ad8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -59,7 +59,13 @@ apt-get install -y curl &>/dev/null
apt-get install -y sudo &>/dev/null
echo -e "${CM}${CL} \r"
echo -en "${GN} Installing Docker... "
get_latest_release() {
curl -sL https://api.github.com/repos/$1/releases/latest | grep '"tag_name":' | cut -d'"' -f4
}
DOCKER_LATEST_VERSION=$(get_latest_release "moby/moby")
echo -en "${GN} Installing Docker $DOCKER_LATEST_VERSION... "
DOCKER_CONFIG_PATH='/etc/docker/daemon.json'
mkdir -p $(dirname $DOCKER_CONFIG_PATH)
cat >$DOCKER_CONFIG_PATH <<'EOF'