flyctl
flyctl copied to clipboard
Running flyctl using podman requires setting the HOME variable
Describe the bug
Running this command:
podman run docker.io/flyio/flyctl -t "$FLY_API_TOKEN" auth whoami
Fails with:
Error accessing home directory $HOME is not defined
Error: $HOME is not defined
Running the same command with manually set HOME works fine:
podman run -e HOME=/ docker.io/flyio/flyctl -t "$FLY_API_TOKEN" auth whoami
It would be great if HOME didn't need to be manually set. Somehow in Docker it just works.
- Operating system: Fedora 41 with podman 5.3.0
fly version: I tried container versions: v0.2.79, v0.2.93 and v0.3.44
It somehow works for me. Maybe because my podman is older than yours?
% podman --version
podman version 4.9.3
% podman run docker.io/flyio/flyctl -t "$FLY_API_TOKEN" auth whoami
[email protected]
And podman sets HOME
% podman run busybox env
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
container=podman
HOME=/root
HOSTNAME=a1db56e1a902