Before pushing/publishing/sharing a docker image, I would like to disable interactive mode or password protect logging in the container. Is there a option to do so?
The use case is that one can run app from docker run or exec in detach mode only
docker exec -d ubuntu_bash touch /tmp/execWorks
but can not do
docker run -ti ubuntu bash
I could not find it in the docker docs so far.