0
我米使用以下dockerfile:码头工人,码头工人在没有ip地址检查
FROM ubuntu:14.04
MAINTAINER xxx xxx<[email protected]>
# SSH
RUN apt-get update && apt-get install -y openssh-server
RUN mkdir /var/run/sshd
RUN echo 'root:xxxxxxx' | chpasswd
RUN sed -i 's/PermitRootLogin without-password/PermitRootLogin yes/' /etc/ssh/sshd_config
# SSH login fix. Otherwise user is kicked off after login
RUN sed '[email protected]\s*required\s*[email protected] optional [email protected]' -i /etc/pam.d/sshd
ENV NOTVISIBLE "in users profile"
RUN echo "export VISIBLE=now" >> /etc/profile
EXPOSE 22
CMD ["/usr/sbin/sshd", "-D"]
# NodeJS Apache2
RUN apt-get update &&\
apt-get -y upgrade &&\
apt-get -y install nodejs nodejs-legacy nodejs-dev npm git curl apache2
我跟了:https://docs.docker.com/examples/running_ssh_service/#run-a-test_sshd-container 但似乎我没有指定一个IP地址。
我在做什么错,或者我没有做什么?
我猜你的意思是你没有一个IP地址,你的容器,而不是为boot2docker VM。 “码头检查”的输出究竟是什么? –
palimpsestor