How do I not create docker container logs? How do I not create docker container logs? docker docker

How do I not create docker container logs?


Starting from Docker 1.6 you can use --log-driver=none when you run your container. See examples here: https://www.sumologic.com/2015/04/16/new-docker-logging-drivers/


This should work:

CMD while true ; do echo "hey"; sleep 1; done > /dev/null

See answer on the docker lists.