Skip to content

Instantly share code, notes, and snippets.

@icasdri
Last active December 6, 2021 04:28
Show Gist options
  • Save icasdri/2705c802912d8e9c447da21cdeb94560 to your computer and use it in GitHub Desktop.
Save icasdri/2705c802912d8e9c447da21cdeb94560 to your computer and use it in GitHub Desktop.
#!/bin/bash
# note: current working directory ($PWD) assumed to be directory containing a static podman installation
# replace all occurrences of /path/to/static/podman with actual value of $PWD
cp storage.conf "$HOME/.config/containers/storage.conf"
PATH="$PWD/usr/local/bin:$PATH" ./usr/local/bin/podman \
--conmon "$PWD/usr/local/lib/podman/conmon" \
--runtime runc \
run \
--signature-policy policy.json \
--network=host \
-it \
docker.io/library/hello-world
{
"default": [
{
"type": "insecureAcceptAnything"
}
],
"transports":
{
"docker-daemon":
{
"": [{"type":"insecureAcceptAnything"}]
}
}
}
[storage]
driver = "overlay"
[storage.options.overlay]
mount_program = "/path/to/static/podman/usr/local/bin/fuse-overlayfs"
ignore_chown_errors = "true"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment