Commit Graph
753 Commits
Author SHA1 Message Date
H Dub dfd6bdea56 Exit 1 when illegal option rather than do install
Signed-off-by: H Dub <14808878+hdub-tech@users.noreply.github.com>
2026-08-19 13:59:17 -05:00
Paweł Gronowski a23123f039 Merge pull request #573 from alirezabaratian/discard-script
docs: discard script after installation
2026-08-11 18:19:28 +02:00
Sebastiaan van Stijn 13f5fcfbb4 Merge pull request #574 from ericcurtin/add-sbx-install-option
Add SBX env var to install docker-sbx package
2026-08-11 17:41:53 +02:00
Eric Curtin a02aa0bdb5 Add SBX env var to install docker-sbx package
Allow users to opt into installing the docker-sbx package alongside
the standard Docker Engine packages by setting SBX=1, for example:

    curl -fsSL https://get.docker.com | sudo SBX=1 sh

This mirrors the existing pattern used by other env vars (CHANNEL,
VERSION, etc.) and adds the docker-sbx package to the apt and
dnf/yum install package lists when SBX is set to "1".

Signed-off-by: Eric Curtin <eric.curtin@docker.com>
2026-08-11 13:56:20 +01:00
Alireza Baratian 73924be545 docs: discard script after installation
- Added rm command for both channels

Signed-off-by: Alireza Baratian <alireza.baratian@gmail.com>
2026-08-11 13:52:58 +03:30
Sebastiaan van Stijn 263edc94d3 Merge pull request #572 from vvoland/update-versions
Deprecate Ubuntu 25.10 Questing
2026-08-10 23:52:24 +02:00
Paweł Gronowski 8c063cbce4 Deprecate Ubuntu 25.10 Questing
It's EOL

Signed-off-by: Paweł Gronowski <pawel.gronowski@docker.com>
2026-08-10 18:31:20 +02:00
Paweł Gronowski 5ce20f2eef Merge pull request #570 from thaJeztah/allow_downgrades
deb: set "--allow-downgrades" if a specific version is requested
2026-07-20 18:36:11 +02:00
Sebastiaan van Stijn 0d6dc3deb8 deb: set "--allow-downgrades" if a specific version is requested
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2026-07-13 14:18:40 +02:00
Paweł Gronowski 02cb80d6c7 Merge pull request #569 from thaJeztah/cleanup_ver
minor cleanups and fixes
2026-07-13 14:06:28 +02:00
Sebastiaan van Stijn ae0db934a1 prevent bare "=" as version
Make sure both pkg_version and cli_pkg_version are only set on success
to prevent them containing a bare "=", which we were stripping later on.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2026-07-13 12:30:59 +02:00
Sebastiaan van Stijn 59f81eb7e4 move vars closer to where used
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2026-07-13 12:30:22 +02:00
Sebastiaan van Stijn 032958bf84 always declare cli_pkg_version
No real impact, but `$cli_pkg_version` was used unconditionally,
but was set conditionally.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2026-07-13 12:25:53 +02:00
Sebastiaan van Stijn 8564e27fc7 fix indentation
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2026-07-13 12:14:40 +02:00
Sebastiaan van Stijn 4e49bdcfbe Merge pull request #562 from vvoland/rootless-fix
rootless: Correct verification comment
2026-07-13 11:38:30 +02:00
Paweł Gronowski 1c2a765dbb Merge pull request #567 from linux-on-ibm-z/s390x-re-enable-rhel
Re-enable support for RHEL on s390x
2026-07-06 13:42:20 +02:00
sanyogdeshmukh 96b9d34d3d Re-enable RHEL support on s390x
Signed-off-by: sanyogdeshmukh <cok202p2@gmail.com>
2026-07-06 10:56:45 +00:00
Paweł Gronowski 60d4787004 Merge pull request #565 from nanookclaw/fix/raspbian-trixie-debian-repo
fix: use Debian repo for Raspbian Trixie
2026-06-30 17:12:19 +02:00
Paweł Gronowski 5a52accd78 Merge pull request #566 from ericcurtin/patch-1
Normalize Fedora Asahi Remix to Fedora
2026-06-30 17:11:21 +02:00
Eric Curtin b1691976bd Normalize Fedora Asahi Remix to Fedora
So installs work on Fedora Asahi Remix

Signed-off-by: Eric Curtin <eric.curtin@docker.com>
2026-06-30 14:46:52 +01:00
Nanook 55a1d1a8b4 fix: use Debian repo for Raspbian Trixie
Signed-off-by: Nanook <nanookclaw@users.noreply.github.com>
2026-06-14 22:12:07 +00:00
Sebastiaan van Stijn 153e238e1d Merge pull request #564 from vvoland/fix-test-version
scripts/get-version: Select stable release for test when newer
2026-06-12 13:25:03 +02:00
Paweł Gronowski 7372de0780 scripts/get-version: Select stable release for test when newer
The release list is already ordered newest first, so the test channel
only needs to consider releases that are either prereleases or the
latest stable release.
This keeps test from resolving to an older prerelease after a newer
stable release is published.

Signed-off-by: Paweł Gronowski <pawel.gronowski@docker.com>
2026-06-12 12:40:37 +02:00
Sebastiaan van Stijn e353d074b1 Merge pull request #563 from vvoland/update-distro
install: Deprecate Fedora < 43
2026-06-11 16:54:41 +02:00
Paweł Gronowski aa9f363f56 install: Deprecate Fedora < 43
Fedora versions older than 43 are now EOL for this installer path.

Signed-off-by: Paweł Gronowski <pawel.gronowski@docker.com>
2026-06-11 16:47:40 +02:00
Paweł Gronowski 4873c95555 rootless: Correct verification comment
Signed-off-by: Paweł Gronowski <pawel.gronowski@docker.com>
2026-06-08 11:11:27 +02:00
Paweł Gronowski 2687d91dde Merge pull request #558 from vvoland/fix-2942
rootless-install: use docker-29.4.2-2.tgz for version 29.4.2
2026-05-01 13:32:23 +02:00
Paweł Gronowski e020ecbc6c ci: add test cases for version 29.4.2
Add 29.4.2 to the package install test matrix so it is verified across
all tested distributions.

Expand test-install-rootless to run both channels (test and stable).
The stable entry pins STABLE_LATEST=29.4.2 so the static binary URL
workaround (docker-29.4.2-2.tgz) is exercised during CI.

Signed-off-by: Paweł Gronowski <pawel.gronowski@docker.com>
2026-05-01 10:49:44 +02:00
Paweł Gronowski e5748cae44 rootless-install: use docker-29.4.2-2.tgz for version 29.4.2
The static binary tarball for Docker 29.4.2 was re-released with a
"-2" suffix. Add a static_release_version() helper that maps version
numbers to their actual tarball name, so that 29.4.2 resolves to
docker-29.4.2-2.tgz instead of docker-29.4.2.tgz.

Signed-off-by: Paweł Gronowski <pawel.gronowski@docker.com>
2026-05-01 10:43:48 +02:00
Paweł Gronowski f2b0ef96e1 Merge pull request #556 from vlivyur/master
install.sh: Actually start Docker daemon via systemctl
2026-04-24 21:02:28 +02:00
vlivyur bb4b1327ee Actually start Docker daemon via systemctl
Signed-off-by: vlivyur <vlivyur@gmail.com>
2026-04-23 21:02:59 +04:00
Paweł Gronowski 8822028d96 Merge pull request #555 from quentin-laplanche-docker/sec-cli/pin-actions
chore: pin GitHub Actions to commit SHA
2026-04-20 12:48:21 +02:00
Quentin Laplanche 95d415bdbc chore: pin GitHub Actions to commit SHA
Signed-off-by: Quentin Laplanche <quentin.laplanche@docker.com>
2026-04-20 10:48:39 +02:00
Sebastiaan van Stijn 8fb5881103 Merge pull request #553 from vvoland/repo-nowarn
install: Skip "docker already installed" warning in REPO_ONLY mode
2026-04-09 11:53:37 +02:00
Paweł Gronowski 7cdeb5d895 install: Skip "docker already installed" warning in REPO_ONLY mode
When REPO_ONLY=1, the script only sets up the package repository and
exits. There's no reason to warn about Docker being already installed or
sleep for 20 seconds in that case.

Signed-off-by: Paweł Gronowski <pawel.gronowski@docker.com>
2026-04-09 11:36:19 +02:00
Paweł Gronowski c04fb16bb8 Merge pull request #550 from vvoland/rocky
Prepare for Rocky Linux
2026-03-30 20:40:21 +02:00
Paweł Gronowski 86f94af03c Prepare for Rocky Linux
Signed-off-by: Paweł Gronowski <pawel.gronowski@docker.com>
2026-03-30 20:29:10 +02:00
Sebastiaan van Stijn f381ee68b3 Merge pull request #546 from vvoland/fix-diff
diff: Don't force colors
2026-01-09 13:39:52 +01:00
Paweł Gronowski 9c2a9e0be3 diff: Don't force colors
Signed-off-by: Paweł Gronowski <pawel.gronowski@docker.com>
2026-01-09 13:16:07 +01:00
Paweł Gronowski 44a2f930ee Merge pull request #541 from orgads/patch-1
Fix installation on debian testing (forky)
2026-01-07 11:01:54 +00:00
Orgad Shaneh 6db0aea6fb Fix installation on debian testing (forky)
forky dist is not deployed, so use trixie instead.

This is similar to #327.

Signed-off-by: Orgad Shaneh <orgad.shaneh@audiocodes.com>
2025-12-11 12:41:33 +02:00
Paweł Gronowski 8b33a64d28 Merge pull request #518 from gajeshbhat/feature/daemon-start-option
Automatically start Docker service with --no-autostart disable option
2025-12-11 10:09:23 +00:00
Gajesh Bhat 7d4c5e207f Automatically start Docker daemon after installation by default
This PR makes the Docker daemon start automatically after installation
by default, with a --no-autostart opt-out flag. This addresses issue #124
and aligns with the "opinionated convenience" philosophy of get.docker.com.

Changes:
- Autostart enabled by default (AUTOSTART=1)
- Added --no-autostart flag to opt-out
- Smart systemd detection using /run/systemd/system directory check
- Falls back to traditional service management (service/chkconfig/update-rc.d)
- Uses sh_c pattern for proper dry-run support
- All informational messages output to stderr

The systemd detection checks for /run/systemd/system directory which only
exists when systemd is actually running as PID 1. This prevents failures
in container environments where systemctl is installed but systemd is not
running.

Tested across all supported distributions:
- Ubuntu (20.04, 22.04, 24.04)
- Debian (11, 12)
- CentOS Stream (8, 9)
- Fedora (40, 41)
- RHEL/AlmaLinux (8, 9)

Fixes #124

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Signed-off-by: Gajesh Bhat <gajeshbht@gmail.com>
2025-12-09 20:56:15 -08:00
Paweł Gronowski 7d96bd3c52 Merge pull request #532 from vvoland/rootless-auto-versions
rootless: Automatically populate TEST/STABLE version
2025-11-10 22:09:48 +01:00
Paweł Gronowski 955c0d7e1f rootless: Automatically populate TEST/STABLE version
When building the final install.sh script - fill the latest versions
based on Github releases.

Signed-off-by: Paweł Gronowski <pawel.gronowski@docker.com>
2025-11-10 13:05:48 +01:00
Sebastiaan van Stijn e3bd92d5b3 Merge pull request #538 from vvoland/update-rootless-28.5.2
rootless: update to 28.5.2
2025-11-06 12:33:45 +01:00
Paweł Gronowski 0b129669db rootless: update to 28.5.2
Signed-off-by: Paweł Gronowski <pawel.gronowski@docker.com>
2025-11-06 12:08:07 +01:00
Sebastiaan van Stijn 21ac930799 Merge pull request #537 from vvoland/update-rootless-29.0.0-rc.2
rootless: update test version to 29.0.0-rc.2
2025-11-04 11:38:15 +01:00
Paweł Gronowski 9ede3c847d rootless: update test version to 29.0.0-rc.2
Signed-off-by: Paweł Gronowski <pawel.gronowski@docker.com>
2025-11-04 11:25:46 +01:00
Sebastiaan van Stijn 86415efcfe Merge pull request #531 from vvoland/update-rootless-29.0.0-rc.1
rootless: update test version to 29.0.0-rc.1
2025-10-14 23:14:35 +02:00