Skip to content

Commit

Permalink
Update squid_running_on_docker.sh (#2469)
Browse files Browse the repository at this point in the history
  • Loading branch information
emalinowski authored Feb 14, 2024
1 parent 11b94fb commit 464f6eb
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions flavors/squid_auto/squid_running_on_docker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -74,10 +74,18 @@ function install_docker(){
# Docker
###############################################################
# Install docker from sources
curl -fsSL ${DOCKER_DOWNLOAD_URL}/gpg | sudo apt-key add -
add-apt-repository "deb [arch=amd64] ${DOCKER_DOWNLOAD_URL} $(lsb_release -cs) stable"
apt update
apt install -y docker-ce
if [[ $DISTRO == "Ubuntu" ]]; then
curl -fsSL ${DOCKER_DOWNLOAD_URL}/gpg | sudo apt-key add -
add-apt-repository "deb [arch=amd64] ${DOCKER_DOWNLOAD_URL} $(lsb_release -cs) stable"
apt update
apt install -y docker-ce
else
sudo yum update -y
sudo yum install -y docker
# Start and enable Docker service
sudo systemctl start docker
sudo systemctl enable docker
fi
mkdir -p /etc/docker
cp ${SUB_FOLDER}/flavors/squid_auto/startup_configs/docker-daemon.json /etc/docker/daemon.json
chmod -R 0644 /etc/docker
Expand Down

0 comments on commit 464f6eb

Please sign in to comment.