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/
Para cambiar la hora en RedHat 7 usamos los siguientes comandos en una pantalla de…
Elegir un hosting parece sencillo… hasta que el sitio es lento, se cae o no…
Elegir un hosting no es solo cuestión de precio. Muchos proyectos empiezan con un Hosting…
Para convertir videos de mkv a mp4 en GNU Linux es súper fácil, puedes utilizar…
Esta es una forma para permitir las conexiones a nuestro servidor ssh solo cuando vienen…
La forma mas sencilla de salvar todas las reglas que has configurado en IPTables fue…