I prefer to use the flyctl
container image:
podman run \
--interactive --tty --rm \
--volume=${PWD}/.fly:/.fly \
--volume=${PWD}/fly.toml:/fly.toml \
flyio/flyctl:${VERS} ...
Where:
drwxrw---- .fly
drwxrw-rw- .
drwxrwxr-x ..
drwx------ agent-logs
-rw-rw-r-- config.yml
srwxr-xr-x fly-agent.sock
-rw-rw-r-- state.yml
This had been working without warnings (!?) from v0.0.253
all the way until v0.0.261
at which time I start receiving warnings:
WARN no config file found at /.fly/config.yml
...
WARN failed saving cache to /.fly/state.yml: open /tmp/flyctl.cache.lock: no such file or directory
Both files should exist in the container as they’re mounted by --volume=${PWD}/.fly:/.fly
.
I was unable to access a shell in the container to inspect its file system directly.
What am I doing wrong?