0

From this post I found out that I can detach from a docker container with the sequence Ctrl+p + Ctrl+q.

I was wondering, is it possible to create a single bash (or python, or whatever) script that enters a docker container, runs a few commands, then uses the escape sequence to exit the container? I think it may not be possible, but please confirm/deny this!

Austin
  • 6,921
  • 12
  • 73
  • 138

1 Answers1

1

docker exec --detach (or -d) should run commands without attaching.

Lane Terry
  • 76
  • 9