Run container as a daemon - attach detach



docker run -d --rm -it --name test busybox

Run things on it


docker exec CONTAINER command   (eg ls, cat ...)


docker container attach test


Ctrl-p Ctrl-q