Host OS: Arch Linux
Local Computer
This isn't an issue so much as a help request. I am starting my server using systemd, but want to be able to cleanly close it without attaching to the docker session and sending 'c_shutdown()'. You can't do a simple docker exec because it's part of an interactive shell, not a direct command. I found this possible solution, so I sent:
echo "c_shutdown()" | docker attach dst_master
But I get the error:
the input device is not a TTY
I'm not familiar with docker, is there another way I can pipe the command into the session?
Host OS: Arch Linux
Local Computer
This isn't an issue so much as a help request. I am starting my server using systemd, but want to be able to cleanly close it without attaching to the docker session and sending 'c_shutdown()'. You can't do a simple
docker execbecause it's part of an interactive shell, not a direct command. I found this possible solution, so I sent:But I get the error:
I'm not familiar with docker, is there another way I can pipe the command into the session?