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

Unable to deatch from toolbox #1

Open
sysrich opened this issue Jan 21, 2020 · 0 comments
Open

Unable to deatch from toolbox #1

sysrich opened this issue Jan 21, 2020 · 0 comments

Comments

@sysrich
Copy link
Member

sysrich commented Jan 21, 2020

I want to be able to treat toolbox like a screen process, where I can detach and reattach to run long running tasks without needing the SSH session to be there all the time

Pressing ctrl-p followed by ctrl-q will normally allow detaching from interactive container processes, but does not work with the current toolbox, causing the following error:

toolbox:/ # ERRO[0015] detached from container
ERRO[0015] timed out waiting for file /var/lib/containers/storage/btrfs-containers/3d0fefc70c9edb1c284f50eaf377e9ef89fa6d3bbde6644e3d2225190a1ba509/userdata/d006575b972e4bd908349aa867c6e1848a6f87a4060e6a57854aba3370c6013b/exit/3d0fefc70c9edb1c284f50eaf377e9ef89fa6d3bbde6644e3d2225190a1ba509: internal libpod error
Error: non zero exit code: -1: OCI runtime error

This should be resolvable by using podman attach instead of exec to get into the container, at least I can emulate my desired behaviour with podman start toolbox-root, followed by podman attach toolbox-root for a container previously created by toolbox

There's something in the way toolbox cleans up after itself though that kills the container when I detach if I patch toolbox to use attach instead of exec

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant