Skip to content

Commit

Permalink
Install Docker and docker-compose from the official Ubuntu archives
Browse files Browse the repository at this point in the history
Some threat models consider external non-distribution archives bad. As
the distribution package archives are already trusted for the
installation of the whole system, and they contain Docker and
docker-compose, use those despite their older version.

Jammy contains versions

Resolves: bigbluebutton#371
  • Loading branch information
paulmenzel committed May 22, 2024
1 parent c8a743f commit b5f2f5e
Showing 1 changed file with 1 addition and 25 deletions.
26 changes: 1 addition & 25 deletions bbb-install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -1377,34 +1377,10 @@ disable_nginx_site() {
}

install_docker() {
need_pkg apt-transport-https ca-certificates curl gnupg-agent software-properties-common openssl
need_pkg docker.io docker-compose

# Install Docker
if ! apt-key list | grep -q Docker; then
if [ ! -f /usr/share/keyrings/docker-archive-keyring.gpg ]; then
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg
fi
fi
if ! dpkg -l | grep -q docker-ce; then

echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu \
$(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null

apt-get update
need_pkg docker-ce docker-ce-cli containerd.io
fi
if ! which docker; then err "Docker did not install"; fi

# Purge older docker compose if exists.
if dpkg -l | grep -q docker-compose; then
apt-get purge -y docker-compose
fi

if [ ! -x /usr/local/bin/docker-compose ]; then
curl -L "https://github.com/docker/compose/releases/download/1.24.0/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
chmod +x /usr/local/bin/docker-compose
fi

# Ensuring docker is running
if ! docker version > /dev/null ; then
# Attempting to auto resolve by restarting docker socket and engine.
Expand Down

0 comments on commit b5f2f5e

Please sign in to comment.