Skip to content

Commit

Permalink
Fix docker install issue
Browse files Browse the repository at this point in the history
  • Loading branch information
dphulkar-msft committed Dec 2, 2024
1 parent 9acf75f commit 6f8772d
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions docker/dockerinstall.sh
Original file line number Diff line number Diff line change
@@ -1,28 +1,29 @@
# Cleanup old installation
sudo apt remove -y docker-desktop
sudo apt-get remove -y docker docker-engine docker.io containerd runc

#Update package index
rm -r $HOME/.docker/desktop
sudo rm /usr/local/bin/com.docker.cli
sudo apt purge -y docker-desktop
sudo apt-get update
sudo apt-get upgrade -y

# Install required dependencies
# Install certificates and pre-requisites
sudo apt-get install -y ca-certificates curl gnupg lsb-release

# Add Docker's Official GPG Key
# Create keyring for docker
sudo mkdir -m 0755 -p /etc/apt/keyrings
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpg

# Set Up Docker's APT Repository
# Create file for installation
echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null

# Install Docker Engine
# Install Docker
sudo apt-get update
sudo apt-get install -y docker-ce docker-ce-cli containerd.io docker-compose-plugin

# Verify docker installation
# Verify installation
docker --version
sudo docker run hello-world
sudo systemctl enable docker


# Delete old azcopy image
docker rmi `docker images | grep azcopy | cut -d " " -f1`
Expand Down

0 comments on commit 6f8772d

Please sign in to comment.