docker-for-windowswindows-container

How to keep WIndows Container running?


I need to keep my Windows Container up so I can run further commands on it using docker exec.

On Linux, I'd start it to run either sleep infinity, or tail -f /dev/null. Alternatively, I could borrow pause.c from Kubernetes.

What does this look like on Windows?


Solution

  • Use ping -t localhost will do it