docker2docker icon indicating copy to clipboard operation
docker2docker copied to clipboard

can not ssh into container

Open etworker opened this issue 11 years ago • 0 comments

I have downloaded the boot2docker.iso and trusty-server-cloudimg-amd64-disk1.img to the Dockerfile folder, and modify the Dockerfile as below:

FROM ubuntu:14.04
RUN apt-get update -q
RUN apt-get install -qy qemu-kvm socat curl dnsmasq iptables cloud-utils
RUN mkdir -p /cache
#RUN curl -L https://github.com/boot2docker/boot2docker/releases/download/v0.8.0/boot2docker.iso >/cache/boot2docker.iso
#RUN curl -L http://cloud-images.ubuntu.com/trusty/current/trusty-server-cloudimg-amd64-disk1.img >/cache/trusty.img
COPY boot2docker.iso /cache/boot2docker.iso
COPY trusty-server-cloudimg-amd64-disk1.img /cache/trusty.img
RUN ln -s /cache/trusty.img /system.img
ADD bin /usr/local/bin
EXPOSE 22/tcp 4243/tcp 5900/tcp
CMD kvm-start

then I build the image as below: dc build -t etworker/docker2docker2 .

then I run it as below: dc run -P -it --privileged etworker/docker2docker

Every steps above seems ok.

Now I want to ssh into the container which IP is 172.17.0.2, ssh [email protected]

and input the password tcuser, but seems the password is wrong.

I have also tried docker as password, failed again.

Could you please help me why the password is not ok? thanks!

etworker avatar Feb 03 '15 06:02 etworker