1. Instalar paquetes
sudo apt-getupdate
sudo apt-get -y install apt-transport-https ca-certificates curl software-properties-common
2. Importar clave Docker GPG utilizada para firmar paquetes Docker
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
3. Agregar el repositorio de Docker a Linux Mint 19
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(. /etc/os-release; echo "$UBUNTU_CODENAME") stable"
Se agregará una línea al archivo de repositorios adicionales.
deb [arch=amd64] https://download.docker.com/linux/ubuntu bionic stable
4. Instala Docker Engine y Docker Compose en Linux Mint 19 conapt
sudo apt-getupdate
jaidenmeiden@highlandersword:/etc/apt/sources.list.d$ sudo apt-get update
Ign:1http://dl.google.com/linux/chrome/deb stable InReleaseIgn:2http://packages.linuxmint.com tessa InRelease Des:3https://download.docker.com/linux/ubuntu bionic InRelease [64,4 kB] Obj:4http://packages.linuxmint.com tessa Release Obj:5http://ppa.launchpad.net/ondrej/php/ubuntu bionic InRelease Obj:6http://archive.ubuntu.com/ubuntu bionic InRelease Obj:7http://security.ubuntu.com/ubuntu bionic-security InRelease Obj:9https://packages.microsoft.com/repos/vscode stable InRelease Obj:10http://dl.google.com/linux/chrome/deb stable Release Obj:11http://ppa.launchpad.net/webupd8team/java/ubuntu bionic InRelease Obj:12http://archive.ubuntu.com/ubuntu bionic-updates InRelease Obj:13http://archive.canonical.com/ubuntu bionic InRelease
**Des:14https://download.docker.com/linux/ubuntu bionic/stable amd64 Packages [9.594 B] ** Obj:16http://archive.ubuntu.com/ubuntu bionic-backports InRelease
Descargados 74,0 kB en 1s (62,4 kB/s)
Leyendo lista de paquetes... Hecho
5. Instalar la última versión de Docker CE y Docker Compose
sudo apt-get -y install docker-ce docker-compose
Se crea el grupo de Docker pero no se agregan usuarios. Agregue su usuario al grupo para ejecutar comandos de Docker como usuario sin privilegios.
sudo usermod -aG docker $USER
6. Se verifica que Docker este funcionado
sudo docker --version
Dockerversion 19.03.4, build 9013bf583a