Bootstrap installer

install_docker_ubuntu_2404.sh

A helper.sh-hosted installation script for Ubuntu 24.04.4 LTS that removes legacy Docker packages, installs Docker Engine from the official repository, enables the service, and verifies both Docker and Docker Compose.

One-liner

curl -fL 'https://www.helper.sh/install_docker_ubuntu_2404.sh' -o './install_docker_ubuntu_2404.sh'

This command downloads the bundled file only; it does not run it. Inspect the saved source and compare its version before deciding whether to execute it.

Check the file you downloaded

Compare a saved file with the exact bytes bundled in this page’s build. The file stays in this tab; this tool does not upload or persist it. Maximum 2 MiB.

Expected SHA-256
ee56badef35e34b3defbbb24b7d1ed35635f7a91d7f57fe05aa8325699aaf465

Bundled byte count: 10041

Save checksum file

Save the script and checksum in the same directory. On Linux with GNU Coreutils, the command below checks the saved bytes only; it does not run the script. Keep the original filename for this command.

sha256sum --check './install_docker_ubuntu_2404.sh.sha256'

No comparison yet.

The checksum and script come from the same site, not an independent signature. A match does not prove safety, authenticity of upstream dependencies, or suitability for your host. Mutable remote dependencies need separate review.

Read validation and limitations

Requirements

  • Ubuntu 24.04.4 LTS
  • root privileges or sudo
  • Outbound access to download.docker.com
  • systemd-based host

Best for

  • Bootstrap a fresh Ubuntu 24.04.4 server with the current Docker Engine stack
  • Replace older distro-packaged Docker installs with the official Docker repository packages
  • Prepare a host for Compose-based deployments with a single reviewed command

Highlights

  • Removes conflicting legacy Docker packages before installation
  • Installs Docker Engine, Buildx, and Docker Compose from the official Docker APT repository
  • Adds https://docker.1ms.run automatically when Docker Hub is unreachable
  • Starts Docker automatically, adds the invoking user to the docker group, and runs a hello-world check

Recommended procedure

  1. Verify the host is Ubuntu 24.04.4 LTS and run the command with sudo or as root.
  2. Let the script remove older Docker packages, add the official repository, and install the current Docker components.
  3. Allow the script to enable Docker, merge the base daemon.json, and append a registry mirror automatically if Docker Hub is unreachable.
  4. Review the printed Docker and Docker Compose versions, then re-login or run newgrp docker if you want to use Docker without sudo.

Safety notes

  • Use this on Ubuntu 24.04.4 LTS only; do not assume it is safe for every Debian-family release.
  • Review existing /etc/docker/daemon.json changes before overwriting local Docker daemon settings.
  • If the host already runs production containers, schedule a change window because the Docker service will restart.

Compatibility and limits

  • Written for Ubuntu 24.04.4; other Ubuntu versions trigger a warning but are not blocked.
  • Requires root, systemd, and outbound access to Docker package repositories and container registries. Removing conflicting packages can also remove dependent packages.
  • Docker publishes container ports outside some ufw/firewalld rules; review Docker firewall guidance before exposing services.

Files, services, and data affected

  • /etc/apt/sources.list.d/docker.list and /etc/apt/keyrings/docker.asc
  • /etc/docker/daemon.json (adds baseline log settings; a timestamped .bak is made when the file exists; may add docker.1ms.run when Docker Hub is unreachable)
  • Removes listed legacy packages, installs Docker packages, enables and restarts docker, and may add the invoking user to the docker group.

Read-only verification

  • Check `docker --version` and `docker compose version`.
  • Check `systemctl status docker` and `docker info --format '{{.DockerRootDir}}'`.
  • Review daemon.json and its backup, APT source/key files, and the package transaction before using the host.

If it fails

If package setup or the daemon restart fails, inspect `sudo journalctl -u docker -n 100 --no-pager` and `sudo apt-get update`; resolve repository, network, or daemon.json errors before retrying. The script has no dry-run or automatic rollback.

Download, inspect, then verify the version before execution. A hash only identifies these exact bytes; it does not prove safety. Piped commands run remote content immediately, and upstream dependencies can change.

Related topics

Ubuntu: prepare Docker or VPN access

Choose host installation, client access or an existing Docker service without treating old application images as a default new stack.

Open topic