ほとんどRunning an SSH service - Docker Documentationにある通り。 あとはパッケージをアップデートするようにしてみた。 このときに initscripts とかをアップデート対象から外しておかないとエラーになるみたい。 Dockerfile FROM ubuntu:precise RUN rm -f /etc/apt/sources.list && \ echo "deb http://jp.archive.ubuntu.com/ubuntu/ precise main restricted universe multiverse" >> /etc/apt/sources.list && \ echo "deb http://jp.archive.ubuntu.com/ubuntu/ precise-updates main restricted