Categories: DockerLinux

Instalar o Actualizar Docker Engine en Linux Fedora

Para instalar Docker Engine en Linux Fedora ejecuta los siguientes comandos desde una terminal.

Si ya tienes Docker Engine instalado primero debes desinstalar la versión anterior. Todo lo que hayas instalado en /var/lib/docker (imagenes, contenedores, volumenes, etc.) queda intacto.

[simterm]$ sudo dnf remove docker \
docker-client \
docker-client-latest \
docker-common \
docker-latest \
docker-latest-logrotate \
docker-logrotate \
docker-selinux \
docker-engine-selinux \
docker-engine
[/simterm]

Luego sigue con los comandos para instalar la nueva version de Docker Engine.

[simterm]$ sudo dnf -y install dnf-plugins-core[/simterm]

[simterm]$ sudo dnf config-manager \
–add-repo \
https://download.docker.com/linux/fedora/docker-ce.repo
[/simterm]

[simterm]$ sudo dnf install docker-ce docker-ce-cli containerd.io docker-compose-plugin [/simterm]

Listo, ahora inicia Docker con el siguiente comando.

[simterm]$ sudo systemctl start docker [/simterm]

Ahora puedes probar Docker con una de tus imagenes o corriendo la de hello-world con el siguiente comando.

[simterm]$ sudo docker run hello-world[/simterm]

La respuesta seria algo como lo siguiente indicando que tienes Docker Engine correctamente instalado.

Status: Downloaded newer image for hello-world:latest

Hello from Docker!
This message shows that your installation appears to be working correctly.

To generate this message, Docker took the following steps:
 1. The Docker client contacted the Docker daemon.
 2. The Docker daemon pulled the "hello-world" image from the Docker Hub.
    (amd64)
 3. The Docker daemon created a new container from that image which runs the
    executable that produces the output you are currently reading.
 4. The Docker daemon streamed that output to the Docker client, which sent it
    to your terminal.

To try something more ambitious, you can run an Ubuntu container with:
 $ docker run -it ubuntu bash

Share images, automate workflows, and more with a free Docker ID:
 https://hub.docker.com/

For more examples and ideas, visit:
 https://docs.docker.com/get-started/
Oscar Meza

Share
Published by
Oscar Meza

Recent Posts

Cambiar la hora en RedHat 7

Para cambiar la hora en RedHat 7 usamos los siguientes comandos en una pantalla de…

56 años ago

Errores comunes al elegir Hosting (y cómo evitarlos)

Elegir un hosting parece sencillo… hasta que el sitio es lento, se cae o no…

56 años ago

Hosting Barato vs Hosting Premium: ¿cuál conviene realmente?

Elegir un hosting no es solo cuestión de precio. Muchos proyectos empiezan con un Hosting…

56 años ago

Como convertir videos mkv a mp4 en GNU Linux

Para convertir videos de mkv a mp4 en GNU Linux es súper fácil, puedes utilizar…

56 años ago

Permitir conexiones a ssh de ciertas IPs con iptables

Esta es una forma para permitir las conexiones a nuestro servidor ssh solo cuando vienen…

56 años ago

Como salvar las reglas creadas en IPTables en Ubuntu

La forma mas sencilla de salvar todas las reglas que has configurado en IPTables fue…

56 años ago