LOGBOOK

HELP

Quiz Entry - updated: 2026.11.26

What does curl -fsSL https://get.docker.com -o get-docker.sh && sudo sh get-docker.sh do, and when is it acceptable?

It downloads Docker's convenience install script and runs it as root; it is meant for quick test and development machines, not for production.

The convenience script detects the distribution, adds Docker's package repository and installs the latest Docker Engine, all non-interactively. That is quick for a lab VM, but:

  • you run a script from the internet as root. Downloading it to a file first (as here, instead of piping straight into sh) at least lets you read it before running it;
  • it installs the latest version, so two machines set up a week apart may differ;
  • it is not meant for upgrading an existing installation.

Docker's own documentation recommends it only for testing and development. For servers, install from Docker's apt repository (pinned and reproducible, upgraded with the normal package tools) or, in an Ansible context, let a playbook or role do the same steps declaratively.

Go deeper:

From Quiz: ITIA / Network Automation with Ansible and a Check Point Firewall | Updated: Nov 26, 2026