Pausing and resuming in docker headless mode #35
Closed
DrewThomasson
started this conversation in
Ideas
Replies: 1 comment
-
Hope that helps anyone looking into this in the future |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Related, I found out one can pause a running docker image
Info about pausing and unpausing Docker image
Summary of Commands for Running and Pausing the Docker Image
Launching the Docker Image (You have to use these modified launch command instead if you want to pause or unpause it.)
Without GPU Support
With GPU Support
Explanation:
--rm
Flag: By omitting the--rm
flag, the container won't be automatically removed when stopped or paused. This allows you to pause and unpause the container without losing its state or output.--gpus all
flag enables GPU acceleration if you have NVIDIA GPUs and the necessary drivers (nvidia-docker2
or Docker's native GPU support) installed.Pausing and Unpausing the Docker Container
On Linux and macOS
Pause Command:
Unpause Command:
On Windows (PowerShell)
Pause Command:
Unpause Command:
Explanation:
athomasson2/ebook2audiobookxtts:latest
and apply the pause or unpause action.xargs
to pass the container ID todocker pause
ordocker unpause
.$()
to execute the inner command and pass its output todocker pause
ordocker unpause
.Additional Notes:
-it
flags (-i
for interactive,-t
for a pseudo-TTY), you'll continue to see the terminal output of the Docker container, which is useful for monitoring its activity.DrewThomasson/ebook2audiobook#10 (comment)
Beta Was this translation helpful? Give feedback.
All reactions