How do I connect to docker container?

I am deploying fly with docker containers. Once they’re deployed, how do I connect to the container to debug?

fly ssh console should get you into a shell. Is that what you mean?

Thank you! That doesn’t work - I get an error log saying “srv another instance of the agent is already running”

Try running fly agent stop. What operating system is this?

I’m running these commands from OSX.
When I tried fly agent stop, I got
failed dialing agent: dial unix /path/to/.fly/fly-agent.sock: connect: no such file or directory.

I’m still running into this issue. I need to check what’s in the file system to figure out why it’s not working. Any idea @kurt?

@cinjon Could you let us know which version of flyctl you’re running?

flyctl version

I ended up fixing this through some voodoo of commands that finally got the agent to shut down.

flyctl v0.0.316 darwin/amd64 Commit: baa9b3a BuildDate: 2022-04-07T19:07:09Z