Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Install Docker CE on Linux Mint 19
#!/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 bionic 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.22.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
@Guetbest

This comment has been minimized.

Copy link

@Guetbest Guetbest commented Mar 20, 2019

Hello, I have this message after sudo apt-get install docker-ce :

Reading state information... Done
Package docker-ce is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

@Guetbest

This comment has been minimized.

Copy link

@Guetbest Guetbest commented Mar 20, 2019

Looks like sudo apt-get install docker works

@trfiladelfo

This comment has been minimized.

Copy link

@trfiladelfo trfiladelfo commented May 29, 2019

Now
sudo apt-get install docker.io

Works in Linux Mint 19

@betray32

This comment has been minimized.

Copy link

@betray32 betray32 commented Jun 24, 2019

Thanks bro

@betray32

This comment has been minimized.

Copy link

@betray32 betray32 commented Jun 24, 2019

Now
sudo apt-get install docker.io

Works in Linux Mint 19

Very nice thx

@sethbergman

This comment has been minimized.

Copy link
Owner Author

@sethbergman sethbergman commented Jun 24, 2019

Thanks @trfiladelfo I've updated the gist. Also updated to the latest LTS version of docker-compose.

@jobedylbas

This comment has been minimized.

Copy link

@jobedylbas jobedylbas commented Aug 13, 2019

Hey, I tried to use your script on Linux Mint 19.2, but adding the apt-repository I get the following message:

Malformed input, repository not added.

So, to solve this problem I use the following line, basically you have to edit manually the sources.list.

echo -e "\ndeb [arch=amd64] https://download.docker.com/linux/ubuntu bionic stable" | sudo tee -a /etc/apt/sources.list

This occurs because add-apt-repository of Linux Mint is not the same as Ubuntu, as said in this issue. Maybe, this could help someone else.
Thnx

@mikconstantinou

This comment has been minimized.

Copy link

@mikconstantinou mikconstantinou commented Oct 3, 2019

Hey, I tried to use your script on Linux Mint 19.3, but adding the apt-repository I get the following message:

Malformed input, repository not added.

So, to solve this problem I use the following line, basically you have to edit manually the sources.list.

echo -e "\ndeb [arch=amd64] https://download.docker.com/linux/ubuntu bionic stable" | sudo tee -a /etc/apt/sources.list

This occurs because add-apt-repository of Linux Mint is not the same as Ubuntu, as said in this issue. Maybe, this could help someone else.
Thnx

Thank you so much, I was having this exact issue as well. This solved it for me.

@thiago231286

This comment has been minimized.

Copy link

@thiago231286 thiago231286 commented Oct 7, 2019

Ei, tentei usar seu script no Linux Mint 19.3, mas adicionando o repositório apt, recebo a seguinte mensagem:

Malformed input, repository not added.

Então, para resolver esse problema, eu uso a seguinte linha, basicamente você precisa editar manualmente o sources.list.

echo -e "\ndeb [arch=amd64] https://download.docker.com/linux/ubuntu bionic stable" | sudo tee -a /etc/apt/sources.list

Isso ocorre porque o add-apt-repository do Linux Mint não é o mesmo que Ubuntu, como dito nesta edição . Talvez isso possa ajudar outra pessoa.
Thnx

Estava com o mesmo problema no Linux Mint cinnamon 19.2 "Tina" x64b. Obrigado.

@PedroCarl0s

This comment has been minimized.

Copy link

@PedroCarl0s PedroCarl0s commented Oct 17, 2019

Hey, I tried to use your script on Linux Mint 19.3, but adding the apt-repository I get the following message:

Malformed input, repository not added.

So, to solve this problem I use the following line, basically you have to edit manually the sources.list.

echo -e "\ndeb [arch=amd64] https://download.docker.com/linux/ubuntu bionic stable" | sudo tee -a /etc/apt/sources.list

This occurs because add-apt-repository of Linux Mint is not the same as Ubuntu, as said in this issue. Maybe, this could help someone else.
Thnx

Thanks!

@jackemathe

This comment has been minimized.

Copy link

@jackemathe jackemathe commented Oct 17, 2019

Hey, I tried to use your script on Linux Mint 19.3, but adding the apt-repository I get the following message:

Malformed input, repository not added.

So, to solve this problem I use the following line, basically you have to edit manually the sources.list.

echo -e "\ndeb [arch=amd64] https://download.docker.com/linux/ubuntu bionic stable" | sudo tee -a /etc/apt/sources.list

This occurs because add-apt-repository of Linux Mint is not the same as Ubuntu, as said in this issue. Maybe, this could help someone else.
Thnx

Thanks so much

@AliSheheryar

This comment has been minimized.

Copy link

@AliSheheryar AliSheheryar commented Apr 12, 2021

If anyone like me using 19.3 tricia release of Mint, and having problems with error
"Malformed input, repository not added."
visit ( https://forums.linuxmint.com/viewtopic.php?t=300469 ).
The answer provided by " Diydavid" would do the trick.

Gracias

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