Skip to content

Instantly share code, notes, and snippets.

@zulhfreelancer
Last active May 17, 2024 17:38
Show Gist options
  • Save zulhfreelancer/254c4a157c586dd232c1a51db0f6eac3 to your computer and use it in GitHub Desktop.
Save zulhfreelancer/254c4a157c586dd232c1a51db0f6eac3 to your computer and use it in GitHub Desktop.
Install Docker oneliner script

Just install Docker

$ curl -fsSL get.docker.com -o get-docker.sh && sh get-docker.sh

Install Docker and Rancher Server

$ curl -fsSL get.docker.com -o get-docker.sh && sh get-docker.sh && sudo docker run -d --restart=unless-stopped -p 8080:8080 rancher/server

@edneibach
Copy link

Neat!

@rimiti
Copy link

rimiti commented Apr 9, 2024

Thx

@treverehrfurth
Copy link

Does the curl command also install compose along with it?

@Zorlin
Copy link

Zorlin commented May 17, 2024

Does the curl command also install compose along with it?

Compose is part of Docker now, but it's docker compose as opposed to docker-compose

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