启动 Docker 容器
docker run -it ubuntu:latest
解除容器关联
Ctrl+P Ctrl+Q
docker run -t -i → can be detached with PQ and reattached with docker attach
docker run -i → cannot be detached with PQ; will disrupt stdin
docker run → cannot be detached with PQ; can SIGKILL client; can reattach with docker attach
关联容器
docker attach -ai CONTAINER_NAME