crops / poky-container

A container image that is able to run bitbake/poky. It has helpers to create users and groups within the container. This is so that the output generated in the container will be readable by the user on the host.
GNU General Public License v2.0
206 stars 94 forks source link

How to use SSH with qemu running within docker #12

Closed ykoehler closed 6 years ago

ykoehler commented 7 years ago

Sorry if this doesn't belong here, but now since I can run qemu within the docker container, I tried to map the port 22 within to the host using -p 2222:22 and it didn't worked as expected, I guess that map to the docker container itself and not to the qemu instance running within, so, how would one access the qemu ssh from the host?

rewitt1 commented 7 years ago

slirp is doing port forwarding as well, and by default it forwards 2222 to

  1. So you would need to use

-p 2222:2222

On Mon, Mar 20, 2017 at 3:38 PM, Yannick Koehler notifications@github.com wrote:

Sorry if this doesn't belong here, but now since I can run qemu within the docker container, I tried to map the port 22 within to the host using -p 2222:22 and it didn't worked as expected, I guess that map to the docker container itself and not to the qemu instance running within, so, how would one access the qemu ssh from the host?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/crops/poky-container/issues/12, or mute the thread https://github.com/notifications/unsubscribe-auth/ADfcuySMaPO9sBHxHT0W8aQs9EshxugGks5rnv_cgaJpZM4MjGw0 .