You must Ctrl+c before attaching, can you not say you can -a connect: (
Usage: docker start [OPTIONS] CONTAINER [CONTAINER...] Start one or more stopped containers Options: -a, --attach Attach STDOUT/STDERR and forward signals --detach-keys string Override the key sequence for detaching a container --help Print usage -i, --interactive Attach container's STDIN
-aJust open the output stream, you can continue to get the output of the container, and add
-iOnly then can the input stream be opened so that your operation can be reflected in the container. If you don’t add it, you will appear.
suspended animationThe situation.