$ -weight: 600;">sudo -weight: 500;">apt-get -weight: 500;">update
-weight: 600;">sudo -weight: 500;">apt-get -weight: 500;">update
-weight: 600;">sudo -weight: 500;">apt-get -weight: 500;">update
-weight: 600;">sudo -weight: 500;">apt-get -weight: 500;">upgrade -y
-weight: 600;">sudo -weight: 500;">apt-get -weight: 500;">upgrade -y
-weight: 600;">sudo -weight: 500;">apt-get -weight: 500;">upgrade -y
for pkg in -weight: 500;">docker.io -weight: 500;">docker-doc -weight: 500;">docker-compose -weight: 500;">docker-compose-v2 podman--weight: 500;">docker containerd runc -weight: 500;">docker -weight: 500;">docker-engine; do -weight: 600;">sudo -weight: 500;">apt-get -weight: 500;">remove -y "$pkg" 2>/dev/null || true
done
for pkg in -weight: 500;">docker.io -weight: 500;">docker-doc -weight: 500;">docker-compose -weight: 500;">docker-compose-v2 podman--weight: 500;">docker containerd runc -weight: 500;">docker -weight: 500;">docker-engine; do -weight: 600;">sudo -weight: 500;">apt-get -weight: 500;">remove -y "$pkg" 2>/dev/null || true
done
for pkg in -weight: 500;">docker.io -weight: 500;">docker-doc -weight: 500;">docker-compose -weight: 500;">docker-compose-v2 podman--weight: 500;">docker containerd runc -weight: 500;">docker -weight: 500;">docker-engine; do -weight: 600;">sudo -weight: 500;">apt-get -weight: 500;">remove -y "$pkg" 2>/dev/null || true
done
-weight: 600;">sudo -weight: 500;">apt-get -weight: 500;">install -y ca-certificates -weight: 500;">curl
-weight: 600;">sudo -weight: 500;">apt-get -weight: 500;">install -y ca-certificates -weight: 500;">curl
-weight: 600;">sudo -weight: 500;">apt-get -weight: 500;">install -y ca-certificates -weight: 500;">curl
-weight: 600;">sudo -weight: 500;">install -m 0755 -d /etc/-weight: 500;">apt/keyrings
-weight: 600;">sudo -weight: 500;">install -m 0755 -d /etc/-weight: 500;">apt/keyrings
-weight: 600;">sudo -weight: 500;">install -m 0755 -d /etc/-weight: 500;">apt/keyrings
-weight: 600;">sudo rm -f /etc/-weight: 500;">apt/keyrings/-weight: 500;">docker.gpg
-weight: 600;">sudo rm -f /etc/-weight: 500;">apt/sources.list.d/-weight: 500;">docker.list
-weight: 600;">sudo rm -f /etc/-weight: 500;">apt/keyrings/-weight: 500;">docker.gpg
-weight: 600;">sudo rm -f /etc/-weight: 500;">apt/sources.list.d/-weight: 500;">docker.list
-weight: 600;">sudo rm -f /etc/-weight: 500;">apt/keyrings/-weight: 500;">docker.gpg
-weight: 600;">sudo rm -f /etc/-weight: 500;">apt/sources.list.d/-weight: 500;">docker.list
-weight: 600;">sudo -weight: 500;">curl -fsSL https://download.-weight: 500;">docker.com/linux/ubuntu/gpg -o /etc/-weight: 500;">apt/keyrings/-weight: 500;">docker.asc
-weight: 600;">sudo -weight: 500;">curl -fsSL https://download.-weight: 500;">docker.com/linux/ubuntu/gpg -o /etc/-weight: 500;">apt/keyrings/-weight: 500;">docker.asc
-weight: 600;">sudo -weight: 500;">curl -fsSL https://download.-weight: 500;">docker.com/linux/ubuntu/gpg -o /etc/-weight: 500;">apt/keyrings/-weight: 500;">docker.asc
-weight: 600;">sudo chmod a+r /etc/-weight: 500;">apt/keyrings/-weight: 500;">docker.asc
-weight: 600;">sudo chmod a+r /etc/-weight: 500;">apt/keyrings/-weight: 500;">docker.asc
-weight: 600;">sudo chmod a+r /etc/-weight: 500;">apt/keyrings/-weight: 500;">docker.asc
-weight: 600;">sudo tee /etc/-weight: 500;">apt/sources.list.d/-weight: 500;">docker.sources > /dev/null <<EOF
Types: deb
URIs: https://download.-weight: 500;">docker.com/linux/ubuntu
Suites: $(. /etc/os-release && echo "${UBUNTU_CODENAME:-$VERSION_CODENAME}")
Components: stable
Architectures: $(dpkg --print-architecture)
Signed-By: /etc/-weight: 500;">apt/keyrings/-weight: 500;">docker.asc
EOF
-weight: 600;">sudo tee /etc/-weight: 500;">apt/sources.list.d/-weight: 500;">docker.sources > /dev/null <<EOF
Types: deb
URIs: https://download.-weight: 500;">docker.com/linux/ubuntu
Suites: $(. /etc/os-release && echo "${UBUNTU_CODENAME:-$VERSION_CODENAME}")
Components: stable
Architectures: $(dpkg --print-architecture)
Signed-By: /etc/-weight: 500;">apt/keyrings/-weight: 500;">docker.asc
EOF
-weight: 600;">sudo tee /etc/-weight: 500;">apt/sources.list.d/-weight: 500;">docker.sources > /dev/null <<EOF
Types: deb
URIs: https://download.-weight: 500;">docker.com/linux/ubuntu
Suites: $(. /etc/os-release && echo "${UBUNTU_CODENAME:-$VERSION_CODENAME}")
Components: stable
Architectures: $(dpkg --print-architecture)
Signed-By: /etc/-weight: 500;">apt/keyrings/-weight: 500;">docker.asc
EOF
-weight: 600;">sudo -weight: 500;">apt-get -weight: 500;">update
-weight: 600;">sudo -weight: 500;">apt-get -weight: 500;">update
-weight: 600;">sudo -weight: 500;">apt-get -weight: 500;">update
-weight: 500;">apt-cache policy -weight: 500;">docker-ce
-weight: 500;">apt-cache policy -weight: 500;">docker-ce
-weight: 500;">apt-cache policy -weight: 500;">docker-ce
-weight: 600;">sudo -weight: 500;">apt-get -weight: 500;">install -y -weight: 500;">docker-ce -weight: 500;">docker-ce-cli containerd.io -weight: 500;">docker-buildx-plugin -weight: 500;">docker-compose-plugin
-weight: 600;">sudo -weight: 500;">apt-get -weight: 500;">install -y -weight: 500;">docker-ce -weight: 500;">docker-ce-cli containerd.io -weight: 500;">docker-buildx-plugin -weight: 500;">docker-compose-plugin
-weight: 600;">sudo -weight: 500;">apt-get -weight: 500;">install -y -weight: 500;">docker-ce -weight: 500;">docker-ce-cli containerd.io -weight: 500;">docker-buildx-plugin -weight: 500;">docker-compose-plugin
-weight: 600;">sudo -weight: 500;">systemctl -weight: 500;">enable --now -weight: 500;">docker
-weight: 600;">sudo -weight: 500;">systemctl -weight: 500;">enable --now -weight: 500;">docker
-weight: 600;">sudo -weight: 500;">systemctl -weight: 500;">enable --now -weight: 500;">docker
-weight: 600;">sudo -weight: 500;">systemctl -weight: 500;">status -weight: 500;">docker --no-pager
-weight: 600;">sudo -weight: 500;">systemctl -weight: 500;">status -weight: 500;">docker --no-pager
-weight: 600;">sudo -weight: 500;">systemctl -weight: 500;">status -weight: 500;">docker --no-pager
-weight: 500;">docker --version
-weight: 500;">docker compose version
-weight: 500;">docker --version
-weight: 500;">docker compose version
-weight: 500;">docker --version
-weight: 500;">docker compose version
-weight: 600;">sudo -weight: 500;">docker run --rm hello-world
-weight: 600;">sudo -weight: 500;">docker run --rm hello-world
-weight: 600;">sudo -weight: 500;">docker run --rm hello-world
-weight: 600;">sudo -weight: 500;">docker info
-weight: 600;">sudo -weight: 500;">docker info
-weight: 600;">sudo -weight: 500;">docker info
getent group -weight: 500;">docker >/dev/null || -weight: 600;">sudo groupadd -weight: 500;">docker
getent group -weight: 500;">docker >/dev/null || -weight: 600;">sudo groupadd -weight: 500;">docker
getent group -weight: 500;">docker >/dev/null || -weight: 600;">sudo groupadd -weight: 500;">docker
-weight: 600;">sudo usermod -aG -weight: 500;">docker "$USER"
-weight: 600;">sudo usermod -aG -weight: 500;">docker "$USER"
-weight: 600;">sudo usermod -aG -weight: 500;">docker "$USER"
newgrp -weight: 500;">docker
newgrp -weight: 500;">docker
newgrp -weight: 500;">docker
-weight: 500;">docker run --rm hello-world
-weight: 500;">docker run --rm hello-world
-weight: 500;">docker run --rm hello-world
-weight: 600;">sudo -weight: 500;">apt-get -weight: 500;">update for pkg in -weight: 500;">docker.io -weight: 500;">docker-doc -weight: 500;">docker-compose -weight: 500;">docker-compose-v2 podman--weight: 500;">docker containerd runc -weight: 500;">docker -weight: 500;">docker-engine; do -weight: 600;">sudo -weight: 500;">apt-get -weight: 500;">remove -y "$pkg" 2>/dev/null || true
done -weight: 600;">sudo snap -weight: 500;">remove -weight: 500;">docker 2>/dev/null || true -weight: 600;">sudo -weight: 500;">apt-get -weight: 500;">install -y ca-certificates -weight: 500;">curl
-weight: 600;">sudo -weight: 500;">install -m 0755 -d /etc/-weight: 500;">apt/keyrings
-weight: 600;">sudo rm -f /etc/-weight: 500;">apt/keyrings/-weight: 500;">docker.gpg
-weight: 600;">sudo rm -f /etc/-weight: 500;">apt/sources.list.d/-weight: 500;">docker.list -weight: 600;">sudo -weight: 500;">curl -fsSL https://download.-weight: 500;">docker.com/linux/ubuntu/gpg -o /etc/-weight: 500;">apt/keyrings/-weight: 500;">docker.asc
-weight: 600;">sudo chmod a+r /etc/-weight: 500;">apt/keyrings/-weight: 500;">docker.asc
-weight: 600;">sudo tee /etc/-weight: 500;">apt/sources.list.d/-weight: 500;">docker.sources > /dev/null <<EOF
Types: deb
URIs: https://download.-weight: 500;">docker.com/linux/ubuntu
Suites: $(. /etc/os-release && echo "${UBUNTU_CODENAME:-$VERSION_CODENAME}")
Components: stable
Architectures: $(dpkg --print-architecture)
Signed-By: /etc/-weight: 500;">apt/keyrings/-weight: 500;">docker.asc
EOF -weight: 600;">sudo -weight: 500;">apt-get -weight: 500;">update
-weight: 600;">sudo -weight: 500;">apt-get -weight: 500;">install -y -weight: 500;">docker-ce -weight: 500;">docker-ce-cli containerd.io -weight: 500;">docker-buildx-plugin -weight: 500;">docker-compose-plugin
-weight: 600;">sudo -weight: 500;">systemctl -weight: 500;">enable --now -weight: 500;">docker -weight: 600;">sudo -weight: 500;">docker run --rm hello-world -weight: 500;">docker --version
-weight: 600;">sudo -weight: 500;">docker compose version
-weight: 600;">sudo -weight: 500;">apt-get -weight: 500;">update for pkg in -weight: 500;">docker.io -weight: 500;">docker-doc -weight: 500;">docker-compose -weight: 500;">docker-compose-v2 podman--weight: 500;">docker containerd runc -weight: 500;">docker -weight: 500;">docker-engine; do -weight: 600;">sudo -weight: 500;">apt-get -weight: 500;">remove -y "$pkg" 2>/dev/null || true
done -weight: 600;">sudo snap -weight: 500;">remove -weight: 500;">docker 2>/dev/null || true -weight: 600;">sudo -weight: 500;">apt-get -weight: 500;">install -y ca-certificates -weight: 500;">curl
-weight: 600;">sudo -weight: 500;">install -m 0755 -d /etc/-weight: 500;">apt/keyrings
-weight: 600;">sudo rm -f /etc/-weight: 500;">apt/keyrings/-weight: 500;">docker.gpg
-weight: 600;">sudo rm -f /etc/-weight: 500;">apt/sources.list.d/-weight: 500;">docker.list -weight: 600;">sudo -weight: 500;">curl -fsSL https://download.-weight: 500;">docker.com/linux/ubuntu/gpg -o /etc/-weight: 500;">apt/keyrings/-weight: 500;">docker.asc
-weight: 600;">sudo chmod a+r /etc/-weight: 500;">apt/keyrings/-weight: 500;">docker.asc
-weight: 600;">sudo tee /etc/-weight: 500;">apt/sources.list.d/-weight: 500;">docker.sources > /dev/null <<EOF
Types: deb
URIs: https://download.-weight: 500;">docker.com/linux/ubuntu
Suites: $(. /etc/os-release && echo "${UBUNTU_CODENAME:-$VERSION_CODENAME}")
Components: stable
Architectures: $(dpkg --print-architecture)
Signed-By: /etc/-weight: 500;">apt/keyrings/-weight: 500;">docker.asc
EOF -weight: 600;">sudo -weight: 500;">apt-get -weight: 500;">update
-weight: 600;">sudo -weight: 500;">apt-get -weight: 500;">install -y -weight: 500;">docker-ce -weight: 500;">docker-ce-cli containerd.io -weight: 500;">docker-buildx-plugin -weight: 500;">docker-compose-plugin
-weight: 600;">sudo -weight: 500;">systemctl -weight: 500;">enable --now -weight: 500;">docker -weight: 600;">sudo -weight: 500;">docker run --rm hello-world -weight: 500;">docker --version
-weight: 600;">sudo -weight: 500;">docker compose version
-weight: 600;">sudo -weight: 500;">apt-get -weight: 500;">update for pkg in -weight: 500;">docker.io -weight: 500;">docker-doc -weight: 500;">docker-compose -weight: 500;">docker-compose-v2 podman--weight: 500;">docker containerd runc -weight: 500;">docker -weight: 500;">docker-engine; do -weight: 600;">sudo -weight: 500;">apt-get -weight: 500;">remove -y "$pkg" 2>/dev/null || true
done -weight: 600;">sudo snap -weight: 500;">remove -weight: 500;">docker 2>/dev/null || true -weight: 600;">sudo -weight: 500;">apt-get -weight: 500;">install -y ca-certificates -weight: 500;">curl
-weight: 600;">sudo -weight: 500;">install -m 0755 -d /etc/-weight: 500;">apt/keyrings
-weight: 600;">sudo rm -f /etc/-weight: 500;">apt/keyrings/-weight: 500;">docker.gpg
-weight: 600;">sudo rm -f /etc/-weight: 500;">apt/sources.list.d/-weight: 500;">docker.list -weight: 600;">sudo -weight: 500;">curl -fsSL https://download.-weight: 500;">docker.com/linux/ubuntu/gpg -o /etc/-weight: 500;">apt/keyrings/-weight: 500;">docker.asc
-weight: 600;">sudo chmod a+r /etc/-weight: 500;">apt/keyrings/-weight: 500;">docker.asc
-weight: 600;">sudo tee /etc/-weight: 500;">apt/sources.list.d/-weight: 500;">docker.sources > /dev/null <<EOF
Types: deb
URIs: https://download.-weight: 500;">docker.com/linux/ubuntu
Suites: $(. /etc/os-release && echo "${UBUNTU_CODENAME:-$VERSION_CODENAME}")
Components: stable
Architectures: $(dpkg --print-architecture)
Signed-By: /etc/-weight: 500;">apt/keyrings/-weight: 500;">docker.asc
EOF -weight: 600;">sudo -weight: 500;">apt-get -weight: 500;">update
-weight: 600;">sudo -weight: 500;">apt-get -weight: 500;">install -y -weight: 500;">docker-ce -weight: 500;">docker-ce-cli containerd.io -weight: 500;">docker-buildx-plugin -weight: 500;">docker-compose-plugin
-weight: 600;">sudo -weight: 500;">systemctl -weight: 500;">enable --now -weight: 500;">docker -weight: 600;">sudo -weight: 500;">docker run --rm hello-world -weight: 500;">docker --version
-weight: 600;">sudo -weight: 500;">docker compose version
getent group -weight: 500;">docker >/dev/null || -weight: 600;">sudo groupadd -weight: 500;">docker
-weight: 600;">sudo usermod -aG -weight: 500;">docker "$USER"
newgrp -weight: 500;">docker
-weight: 500;">docker run --rm hello-world
getent group -weight: 500;">docker >/dev/null || -weight: 600;">sudo groupadd -weight: 500;">docker
-weight: 600;">sudo usermod -aG -weight: 500;">docker "$USER"
newgrp -weight: 500;">docker
-weight: 500;">docker run --rm hello-world
getent group -weight: 500;">docker >/dev/null || -weight: 600;">sudo groupadd -weight: 500;">docker
-weight: 600;">sudo usermod -aG -weight: 500;">docker "$USER"
newgrp -weight: 500;">docker
-weight: 500;">docker run --rm hello-world - Ubuntu 26.04 LTS instalado.
- Acceso con un usuario con permisos -weight: 600;">sudo.
- Conexión a internet.
- Un entorno basado en systemd, como una instalación normal de Ubuntu Server o Ubuntu Desktop. - -weight: 500;">docker-ce: Docker Community Edition, el motor principal.
- -weight: 500;">docker-ce-cli: la interfaz de línea de comandos -weight: 500;">docker.
- containerd.io: runtime de contenedores usado por Docker.
- -weight: 500;">docker-buildx-plugin: soporte moderno para builds con BuildKit.
- -weight: 500;">docker-compose-plugin: Docker Compose como plugin oficial, usando el comando -weight: 500;">docker compose. - Ubuntu 26.04 usa el codename resolute.
- Docker ya publica repositorio para esta versión.
- El método actual usa /etc/-weight: 500;">apt/keyrings/-weight: 500;">docker.asc.
- El repositorio se configura con /etc/-weight: 500;">apt/sources.list.d/-weight: 500;">docker.sources.
- Docker Compose se instala como plugin y se usa con -weight: 500;">docker compose.
- En servidores con UFW, hay que considerar cómo Docker maneja reglas de red y puertos publicados. - Docker Docs — Install Docker Engine on Ubuntu
- Docker Docs — Linux post-installation steps
- Docker Ubuntu repository — resolute