Skip to content

Commit

Permalink
Enforce a single search registry
Browse files Browse the repository at this point in the history
Enforce "docker.io" to be the only search registry.  Short-name
resolution for remote clients is not fully supported since there is no
means to prompt.  Enforcing a single registry  works around the problem
since prompting only fires with more than one search registry.

Without this patch docker/podman client not able to pull short-name images when using remote socket.
```
$ ssh -nNT -L $(pwd)/docker.sock:/run/podman/podman.sock -i /Users/prkumar/.ssh/podman-machine-default -p 64940 root@localhost
==== docker client ====
$ docker -H unix://$(pwd)/docker.sock pull httpd:latest
Error response from daemon: failed to resolve image name: short-name resolution enforced but cannot prompt without a TTY
=== podman client ===
$ podman -c unix://$(pwd)/docker.sock pull httpd:latest
Error: short-name resolution enforced but cannot prompt without a TTY
```

- containers/podman@6f36a47
- containers/podman#11489
  • Loading branch information
praveenkumar committed Feb 15, 2022
1 parent 35cced9 commit e8154c1
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions fcos-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -182,3 +182,9 @@ storage:
contents:
inline: |
podman.crc.testing
- path: /etc/containers/registries.conf.d/999-podman-machine.conf
mode: 0644
contents:
inline: |
unqualified-search-registries=["docker.io"]

0 comments on commit e8154c1

Please sign in to comment.