Closed adnieman closed 2 years ago
Thanks for reporting this. Yes, it definitely looks like a bug where the current implementation assumes the container was started with uid=0. I'll need to add some more logic to this line
Thanks for reporting this. Yes, it definitely looks like a bug where the current implementation assumes the container was started with uid=0. I'll need to add some more logic to this line
A work-around for now is to use the command
docker exec -itu0 [container] mc-send-to-console say hello
Describe the problem
I've run this container under Alpine and it works very well. Under Ubuntu 20.04, I can not send any commands to the console using
docker exec mc_existence mc-send-to-console
. The error that appears iserror: failed switching to "minecraft": operation not permitted
.I start the container using
docker-compose up -d
and I can attach to the console by way ofdocker attach mc_existence
, but I can not send commands to the console unless it is in interactive. I have opened a shell in the container and sent commands to the named pipe as root usingmc-send-to-console say hello
, which is successful. I see the output show up in the minecraft server log.I haven't seen this bug listed in the list of open reports, so I've posted it here hoping for some help.
Container definition