I’m trying sysvinit-core in debian:jessie image with latest boot2docker-1.3.1 on Mac OS X.
FROM debian:jessie RUN apt-get update && apt-get install -y sysvinit-core CMD [ "/sbin/init" ]
$ docker build -t test .
$ docker run -d -t test
…add two lines into /etc/rc.local:
…date >> /tmp/a.log
$ docker restart THE-CONTAINER-ID
$ docker exec -i -t THE-CONTAINER-ID /bin/bash
then I can see the log file /tmp/a.log, but there is no output from “docker logs THE-CONTAINER-ID”, I also grep-ed /var/log/*, didn’t find it, where does the stdout of /sbin/init go?
I tried “docker run -d test” without the option “-t” or even without “-d”, still can’t see any output on my terminal emulator.