0
Hello, I created my Dockerfile and added some functions, but I need to execute a command inside it and I can’t.
Java CMD -Xmx$SERVER_RAM -Xms$SERVER_RAM -jar $SERVER_JAR nogui (it starts and appears the logs in the docker logs -f
) however, when I try to run a command with Docker exec it runs on the system and not on the application, I tried by Docker attach and it opens the server log to type, I tried to use echo "op" | docker attach <container_id>
and it does not perform. Someone knows how to execute?