Note: be careful not to change the boot2docker ssh setting or you will eventually be unable to start the VM correctly. In my case it should have NAT selected.Ĭlick “Port Forwarding” and map the inner port to the a port on localhost, I choose to use the same port number. Sometimes the “Attached to:” combo unselects itself, so watch for that. In VirtualBox, open the boot2docker VM and choose Adapter 1. This maps the SSH port to a known port that is available in the VM, recall I am using boot2docker which rides on VirtualBox, but the needs to be mapped out to where P圜harm can get at it. # Replace old entrypoint with supervisiord, starts both sshd and worker.py # Expose SSH on 22, but this gets mapped to some other address. RUN echo "export VISIBLE=now" > /etc/profile RUN sed -i 's/PermitRootLogin without-password/PermitRootLogin yes/' /etc/ssh/sshd_config # Fix up SSH, probably should rip this out in real deploy situations. RUN apt-get update & apt-get install -y supervisor openssh-server python-pip \ĬOPY. # And supervisor-stdout allows us to send the output to the main docker output. # Get supervisor to control multiple processes, sshd to allow connections.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |