How to execute command from Java in a Docker container? I am trying to execute chmod command from Java in a running Docker container: