Skip to content

Commit

Permalink
docker installer only for linux mint now
Browse files Browse the repository at this point in the history
  • Loading branch information
aliuosio committed Aug 7, 2024
1 parent 620b90b commit 939b37b
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 34 deletions.
34 changes: 0 additions & 34 deletions bin/docker

This file was deleted.

25 changes: 25 additions & 0 deletions bin/docker-linuxmint-install
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
#!/bin/bash

set -e

# Remove old docker artifacts
sudo apt-get remove docker docker-engine docker.io containerd runc || true;

# Add Docker's official GPG key:
sudo apt-get update -y;
sudo apt-get install ca-certificates curl
sudo install -m 0755 -d /etc/apt/keyrings
sudo curl -fsSL https://download.docker.com/linux/ubuntu/gpg -o /etc/apt/keyrings/docker.asc
sudo chmod a+r /etc/apt/keyrings/docker.asc

# Add the repository to Apt sources:
echo \
"deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/ubuntu \
$(. /etc/os-release && echo "$UBUNTU_CODENAME") stable" | \
sudo tee /etc/apt/sources.list.d/docker.list > /dev/null

# Install docker
sudo apt-get update -y;
sudo apt-get install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
sudo usermod -aG docker "${USER}";
newgrp docker;

0 comments on commit 939b37b

Please sign in to comment.