Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Running flyctl using podman requires setting the HOME variable #4096

Open
CodeSandwich opened this issue Nov 30, 2024 · 1 comment
Open

Running flyctl using podman requires setting the HOME variable #4096

CodeSandwich opened this issue Nov 30, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@CodeSandwich
Copy link

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
@CodeSandwich CodeSandwich added the bug Something isn't working label Nov 30, 2024
@kzys
Copy link
Member

kzys commented Dec 23, 2024

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

23389176-c332-5126-af63-6c278a71ec3c@tokens.fly.io

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants