is there a way to keep docker containers until after jenkins build finishes. I would like to restart and attach and bash into it.


One way is to run the image with the -td option. From docker run --help:

-t, --tty           Allocate a pseudo-TTY
-d, --detach        Run container in background and print container ID

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.