Skip to content

Commit ae32866

Browse files
allow insecure connections to localhost
see containers/podman#16486 (comment)
1 parent a8dac48 commit ae32866

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

.github/workflows/ci-rootless-podman.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,15 @@ jobs:
1616
run: sudo apt-get -q -y --purge remove podman moby-engine moby-buildx && sudo rm -rf /var/run/docker.sock
1717
- name: Set XDG_RUNTIME_DIR
1818
run: echo "XDG_RUNTIME_DIR=/run/user/$UID" >> $GITHUB_ENV
19-
- name: Create registries.conf
20-
# allow pulling images without a registry specified
19+
- name: Configure podman
2120
run: |
2221
mkdir -p $HOME/.config/containers
2322
echo 'unqualified-search-registries = ["docker.io"]' > $HOME/.config/containers/registries.conf
23+
echo '' >> $HOME/.config/containers/registries.conf
24+
echo '[[registry]]' >> $HOME/.config/containers/registries.conf
25+
echo 'prefix = "localhost"' >> $HOME/.config/containers/registries.conf
26+
echo 'location = "localhost"' >> $HOME/.config/containers/registries.conf
27+
echo 'insecure = true' >> $HOME/.config/containers/registries.conf
2428
- name: Install latest podman release
2529
# see https://podman.io/getting-started/installation#ubuntu
2630
run: |

0 commit comments

Comments
 (0)