Skip to content

deploy: Add /repo endpoint for repository-only setup#551

Open
vvoland wants to merge 1 commit intodocker:masterfrom
vvoland:repo-endpoint
Open

deploy: Add /repo endpoint for repository-only setup#551
vvoland wants to merge 1 commit intodocker:masterfrom
vvoland:repo-endpoint

Conversation

@vvoland
Copy link
Copy Markdown
Contributor

@vvoland vvoland commented Apr 1, 2026

Add a new /repo endpoint (get.docker.com/repo) that configures Docker's package repositories without installing Docker packages.

This is the same install.sh just with REPO_ONLY defaulting to 1, equivalent to running install.sh --setup-repo.

This allows to do:

curl -s https://get.docker.com/repo | sudo sh -

instead of:

curl -s https://get.docker.com | sudo sh -s -- --setup-repo
# or
curl -s https://get.docker.com | sudo REPO_ONLY=1 sh -

For the last one, it's especially tricky because there's a difference between:

# good
sudo REPO_ONLY=1 sh -
and
# bad, sudo would need -E to preserve env
REPO_ONLY=1 sudo sh -

Add a new /repo endpoint (get.docker.com/repo) that configures Docker's
package repositories without installing Docker packages.

This is the same install.sh just with REPO_ONLY defaulting to 1, equivalent
to running install.sh --setup-repo.

Signed-off-by: Paweł Gronowski <pawel.gronowski@docker.com>
@vvoland vvoland self-assigned this Apr 1, 2026
@vvoland
Copy link
Copy Markdown
Contributor Author

vvoland commented Apr 1, 2026

@thaJeztah WDYT?

@thaJeztah
Copy link
Copy Markdown
Member

So is this to update the install script to get another option, or a completely separate script? (I see /repo as "endpoint" mentioned); not sure if we want a separate script for it, or just roll it up in the existing one?

@thaJeztah
Copy link
Copy Markdown
Member

Oh, right; we already had sudo sh install-docker.sh --setup-repo - wouldn't that be enough?

@vvoland
Copy link
Copy Markdown
Contributor Author

vvoland commented Apr 1, 2026

Yes we already have it, but it's a bit awkward to use when you pipe from curl.
See the description of the PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants