Skip to content

Instantly share code, notes, and snippets.

@Humoud
Last active October 22, 2022 11:56
Show Gist options
  • Save Humoud/34fc533e3f846ee8daa2f7eeb1a69f04 to your computer and use it in GitHub Desktop.
Save Humoud/34fc533e3f846ee8daa2f7eeb1a69f04 to your computer and use it in GitHub Desktop.
Install Docker and Docker-Compose on Ubuntu 22.04
# Install docker
apt update &&\
apt -y install apt-transport-https ca-certificates curl software-properties-common &&\
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - &&\
add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu jammy stable" &&\
apt-cache policy docker-ce &&\
apt -y install docker-ce
# Install docker compose
# check https://github.com/docker/compose/releases for version
curl -L "https://github.com/docker/compose/releases/download/v2.12.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose &&\
chmod +x /usr/local/bin/docker-compose
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment