Simplest Way to Install Docker

It's so easy, and yet so many blog posts, and the official documentation, make it quite long winded...

Using MacOS? Go here.

Using *nix?

curl https://get.docker.com | sh

For full notes on using this, read this official documentation. There's some important stuff in there.

And if you also want docker-compose...

sudo curl -L https://github.com/docker/compose/releases/download/1.22.0/docker-compose-`uname -s`-`uname -m` -o /usr/local/bin/docker-compose

sudo chmod +x /usr/local/bin/docker-compose

Check here for the latest version of docker-compose and adjust the above URL accordingly.

Or if you just want a script that you can run on a server to get it ready to run any docker-compose based projects...

curl -L http://bit.ly/dockerit | sh

This is good enough for most setups, however if you do this during an interview for Google you will not get the job.


Read Next



2019 Goals
Achieve £500 MRR
(£46/£500)
Launch Servd, a zero-friction hosting platform for Craft CMS
Present two talks outside of my local area
(1/2)
Write one article per week
(18/52)