Use to debug logging through ContainerPilot.
- Add output to log into
outputs/
docker build -t cp-logging .
docker run --name cptest cp-logging containerpilot
- Either look at
docker logs
or possibly output fromtriton-docker run
itself. - ContainerPilot will log output and complete.
docker rm cptest
when completed.
If you need a long running container then add a while true
loop around the for
loop inside the shell script. This should allow a container to continually output the same set of log files repeatedly.
This should also work the same way under Docker for Mac or Docker Machine.