Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Install docker CE on Linux Mint 18.3
#!/usr/bin/env bash
# https://docs.docker.com/install/linux/docker-ce/ubuntu/
sudo apt-get install apt-transport-https ca-certificates curl software-properties-common
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu xenial stable"
sudo apt-get update
sudo apt-get install docker-ce
# https://docs.docker.com/compose/install/
sudo curl -L https://github.com/docker/compose/releases/download/1.20.0/docker-compose-`uname -s`-`uname -m` -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose
# https://docs.docker.com/install/linux/linux-postinstall/
sudo groupadd docker
sudo usermod -aG docker $USER
@IAMtheIAM

This comment has been minimized.

Copy link

@IAMtheIAM IAMtheIAM commented May 4, 2018

Thank you. I spent 25 minutes with other commands and none worked except this one.

@gabbosam

This comment has been minimized.

Copy link

@gabbosam gabbosam commented May 8, 2018

great!

@ilius

This comment has been minimized.

Copy link

@ilius ilius commented May 17, 2018

Thank you

@ghost

This comment has been minimized.

Copy link

@ghost ghost commented May 19, 2018

Thanks you, ok.

@lolmaus

This comment has been minimized.

Copy link

@lolmaus lolmaus commented May 28, 2018

Looks like original Docker guide tries to install a Mint-specific Docker version which does not exist. This guide install Ubuntu version.

Thank you! 🙇

@Artem-Panasenko

This comment has been minimized.

Copy link

@Artem-Panasenko Artem-Panasenko commented May 29, 2018

Thank you

@qzmarco

This comment has been minimized.

Copy link

@qzmarco qzmarco commented May 30, 2018

Thank you!

@nao360

This comment has been minimized.

Copy link

@nao360 nao360 commented Jun 1, 2018

Kudos and thank you, this was nice and easy

@austincunningham

This comment has been minimized.

Copy link

@austincunningham austincunningham commented Jun 8, 2018

👍 💯

@tompabes

This comment has been minimized.

Copy link

@tompabes tompabes commented Jun 9, 2018

Worked like a charm, thanks!

@s0kil

This comment has been minimized.

Copy link

@s0kil s0kil commented Jun 13, 2018

Thank You!

@momenso

This comment has been minimized.

Copy link

@momenso momenso commented Jun 16, 2018

I just missed newgrp docker so it works immediately without requiring sudo.

@jvzanatta

This comment has been minimized.

Copy link

@jvzanatta jvzanatta commented Jun 21, 2018

Great script, thanks a lot :)

@rvrichards

This comment has been minimized.

Copy link

@rvrichards rvrichards commented Jun 22, 2018

Excellent, worked for me on Mint 18 Sarah.

@toaspzoo

This comment has been minimized.

Copy link

@toaspzoo toaspzoo commented Jun 26, 2018

Thanks!

@bergpb

This comment has been minimized.

Copy link

@bergpb bergpb commented Jun 27, 2018

thanks!

@ale10257

This comment has been minimized.

Copy link

@ale10257 ale10257 commented Jun 30, 2018

  • very good!
@chmr123

This comment has been minimized.

Copy link

@chmr123 chmr123 commented Jul 1, 2018

Thanks!

@windgaucho

This comment has been minimized.

Copy link

@windgaucho windgaucho commented Jul 5, 2018

Thank you !!

@twh270

This comment has been minimized.

Copy link

@twh270 twh270 commented Jul 8, 2018

Thanks, worked perfectly. Remember to log out and log back in before running docker commands, the usermod change doesn't take effect immediately.

@hejunchen

This comment has been minimized.

Copy link

@hejunchen hejunchen commented Jul 19, 2018

Great script, thanks. I have been looking for one like this.

@pilgrim2go

This comment has been minimized.

Copy link

@pilgrim2go pilgrim2go commented Jul 24, 2018

it works. thanks

@fmandres92

This comment has been minimized.

Copy link

@fmandres92 fmandres92 commented Aug 14, 2018

Thanks a lot, Your code is working

@artze

This comment has been minimized.

Copy link

@artze artze commented Aug 17, 2018

Verified to be working! Thanks!!

@Mduduzi

This comment has been minimized.

Copy link

@Mduduzi Mduduzi commented Aug 24, 2018

Thanks a lot.

@Howard-HS

This comment has been minimized.

Copy link

@Howard-HS Howard-HS commented Aug 25, 2018

verified to be working, thanks a lot!

@psolarski

This comment has been minimized.

Copy link

@psolarski psolarski commented Aug 29, 2018

Thanks for help :)

@SteveBidenko

This comment has been minimized.

Copy link

@SteveBidenko SteveBidenko commented Sep 1, 2018

Thanks a lot!!!

@petar-stoyanov7

This comment has been minimized.

Copy link

@petar-stoyanov7 petar-stoyanov7 commented Sep 12, 2018

Thank you, good sir!

@jnfrati

This comment has been minimized.

Copy link

@jnfrati jnfrati commented Sep 12, 2018

Beffore any apt-get install you should make an apt-get update! Greetings and thank you for the guide

@pdynarowski

This comment has been minimized.

Copy link

@pdynarowski pdynarowski commented Sep 14, 2018

Works great :)

@sergiofilhowz

This comment has been minimized.

Copy link

@sergiofilhowz sergiofilhowz commented Sep 16, 2018

thank you

@LDiga

This comment has been minimized.

Copy link

@LDiga LDiga commented Sep 17, 2018

Отдуши!! 2 дня мучался!

@ghost

This comment has been minimized.

Copy link

@ghost ghost commented Sep 18, 2018

Thank you

@dwityaPrawira

This comment has been minimized.

Copy link

@dwityaPrawira dwityaPrawira commented Sep 22, 2018

thank you.

@diegorondao

This comment has been minimized.

Copy link

@diegorondao diegorondao commented Oct 2, 2018

Thanks you

@abdel-GitHub

This comment has been minimized.

Copy link

@abdel-GitHub abdel-GitHub commented Oct 15, 2018

Thanks you

@aurelienlair

This comment has been minimized.

Copy link

@aurelienlair aurelienlair commented Oct 18, 2018

Thanks

@sjpatrick

This comment has been minimized.

Copy link

@sjpatrick sjpatrick commented Nov 2, 2018

Worked perfectly. Thanks. You rock.

@sjpatrick

This comment has been minimized.

Copy link

@sjpatrick sjpatrick commented Nov 2, 2018

PS, that was for mint19.

@guilhermefmotta

This comment has been minimized.

Copy link

@guilhermefmotta guilhermefmotta commented Nov 3, 2018

Thanks dude this works for me, i'm using mint 19

@johnt1000

This comment has been minimized.

Copy link

@johnt1000 johnt1000 commented Nov 7, 2018

Thank you

@laissonsilveira

This comment has been minimized.

Copy link

@laissonsilveira laissonsilveira commented Nov 8, 2018

Tks S2

@Tea-pot

This comment has been minimized.

Copy link

@Tea-pot Tea-pot commented Nov 9, 2018

Thank you so much!

@orehush

This comment has been minimized.

Copy link

@orehush orehush commented Nov 15, 2018

Thx)

@fernandobrscunha

This comment has been minimized.

Copy link

@fernandobrscunha fernandobrscunha commented Nov 29, 2018

Thank you 👍 🥇

@Wahba91

This comment has been minimized.

Copy link

@Wahba91 Wahba91 commented Dec 6, 2018

Great

@famachot

This comment has been minimized.

Copy link

@famachot famachot commented Dec 6, 2018

Thank you so much

@ronalddimas13

This comment has been minimized.

Copy link

@ronalddimas13 ronalddimas13 commented Dec 8, 2018

Worked perfectly
Thank you

@lcloss

This comment has been minimized.

Copy link

@lcloss lcloss commented Dec 31, 2018

Awesome! Worked perfectly on Ubuntu 18.04.
Thank you so much.

@DenSul

This comment has been minimized.

Copy link

@DenSul DenSul commented Jan 21, 2019

thx so much!

@antimoroma

This comment has been minimized.

Copy link

@antimoroma antimoroma commented Jan 22, 2019

THX SO MUCH!!!!!!!!!!!

@iteremasov

This comment has been minimized.

Copy link

@iteremasov iteremasov commented Feb 1, 2019

+++

@caravan4eg

This comment has been minimized.

Copy link

@caravan4eg caravan4eg commented Feb 13, 2019

Thanks. It works!

@RicardoGeek

This comment has been minimized.

Copy link

@RicardoGeek RicardoGeek commented Feb 21, 2019

at last!!!
The trick is to have the correct repo added 👍
Thanks for the help!

@gillallifam

This comment has been minimized.

Copy link

@gillallifam gillallifam commented Mar 18, 2020

2019 still working!

@john-light

This comment has been minimized.

Copy link

@john-light john-light commented Mar 29, 2020

hey @dweldon thanks for publishing this! I ran into some errors on the sudo apt install docker-ce step. Any idea what might be going wrong here? https://gist.github.com/john-light/0fde66e399417efaad8bf560ba687eeb

if you do take a look, we can move to the comments on my gist so we don't clutter up your comment section here with my issues :)

cheers

@dweldon

This comment has been minimized.

Copy link
Owner Author

@dweldon dweldon commented Mar 29, 2020

@john-light I'll admit I haven't used this gist in a couple of years, so I'm not sure just by looking at the error log. I'd try experimenting with different deb versions depending on your OS (e.g. you may be using a more recent version of ubuntu). According to this, there's also eoan and bionic available. You could try uninstalling and using one of those in the sudo add-apt-repository step.

@john-light

This comment has been minimized.

Copy link

@john-light john-light commented Mar 29, 2020

@dweldon thanks again! I am using Mint 18.3 (based on xenial) which is how I found this gist. I think I found some clues about the problem, seems to be a networking error. I will continue investigating.

@blessingk

This comment has been minimized.

Copy link

@blessingk blessingk commented Apr 8, 2020

Thank you this worked for me

@DanInSpace104

This comment has been minimized.

Copy link

@DanInSpace104 DanInSpace104 commented Sep 22, 2020

2020 Still works perfect. Thank you so much!

@kexxdon

This comment has been minimized.

Copy link

@kexxdon kexxdon commented Dec 8, 2020

If someone has an error like Couldn't connect to Docker daemon at http+docker://localhost - is it running?

try
sudo chown $USER /var/run/docker.sock

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