Skip to content

Instantly share code, notes, and snippets.

@justisGipson
Last active April 19, 2024 18:51
Show Gist options
  • Select an option

  • Save justisGipson/80290125a0049742169b13f918764467 to your computer and use it in GitHub Desktop.

Select an option

Save justisGipson/80290125a0049742169b13f918764467 to your computer and use it in GitHub Desktop.
uh, fresh docker + git install on new machine

add Docker's official GPG key:

sudo apt-get update 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 "$VERSION_CODENAME") stable" |
sudo tee /etc/apt/sources.list.d/docker.list > /dev/null

update again for docker repo

sudo apt-get update

install latest versions

sudo apt-get install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin

restart docker service

sudo systemctl restart docker.service

install git

sudo apt-get install git

clone repo after this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment