Originally created by @ZGuQing on GitHub (Jun 7, 2022).
Run multiple containers at the same time, will appear this mistake:
ssh: connect to host 127.0.0.1 port 10022: Connection refused
Originally created by @ZGuQing on GitHub (Jun 7, 2022).
Run multiple containers at the same time, will appear this mistake:
ssh: connect to host 127.0.0.1 port 10022: Connection refused
Hi @ZGuQing, running multiple containers at the same time requires to set different SSH ports on host.
I'm using both Monterey and Big Sur on my system as guest OS at the same time concurrently. But for Monterey using 50922:10022 port mapping and for Big Sur using 50923:10022 port mapping.
@csonuryilmaz commented on GitHub (Jun 12, 2022):
Hi @ZGuQing, running multiple containers at the same time requires to set different SSH ports on host.
I'm using both Monterey and Big Sur on my system as guest OS at the same time concurrently. But for Monterey using `50922:10022` port mapping and for Big Sur using `50923:10022` port mapping.
Hi @ZGuQing, running multiple containers at the same time requires to set different SSH ports on host.
I'm using both Monterey and Big Sur on my system as guest OS at the same time concurrently. But for Monterey using 50922:10022 port mapping and for Big Sur using 50923:10022 port mapping.
When creating the container, I mapped different port, but it still doesn't work when running at the same time,
It seems that the 10022 port number conflicts
@ZGuQing commented on GitHub (Jun 13, 2022):
> Hi @ZGuQing, running multiple containers at the same time requires to set different SSH ports on host.
>
> I'm using both Monterey and Big Sur on my system as guest OS at the same time concurrently. But for Monterey using `50922:10022` port mapping and for Big Sur using `50923:10022` port mapping.
When creating the container, I mapped different port, but it still doesn't work when running at the same time,
It seems that the 10022 port number conflicts

Hi @ZGuQing, as far as I understand from log, it does not seem to be SSH port conflict.
Are you using same .img disk file for both containers? (It should be different for each container.)
Because according to logs it can't get "write" lock. So one one of the containers is not starting. For this reason we see 10022 connection refused in logs. Qemu virtual machine is not alive.
@csonuryilmaz commented on GitHub (Jun 13, 2022):
Hi @ZGuQing, as far as I understand from log, it does not seem to be SSH port conflict.
Are you using same `.img` disk file for both containers? (It should be different for each container.)
Because according to logs it can't get "write" lock. So one one of the containers is not starting. For this reason we see `10022 connection refused` in logs. Qemu virtual machine is not alive.
Hi @ZGuQing, as far as I understand from log, it does not seem to be SSH port conflict.
Are you using same .img disk file for both containers? (It should be different for each container.)
Because according to logs it can't get "write" lock. So one one of the containers is not starting. For this reason we see 10022 connection refused in logs. Qemu virtual machine is not alive.
Yes, I used the same .img disk file for both containers, you mean I need to redownload an different .img?
@ZGuQing commented on GitHub (Jun 13, 2022):
> Hi @ZGuQing, as far as I understand from log, it does not seem to be SSH port conflict.
>
> Are you using same `.img` disk file for both containers? (It should be different for each container.)
>
> Because according to logs it can't get "write" lock. So one one of the containers is not starting. For this reason we see `10022 connection refused` in logs. Qemu virtual machine is not alive.
Yes, I used the same `.img` disk file for both containers, you mean I need to redownload an different `.img`?
Hi @ZGuQing, as far as I understand from log, it does not seem to be SSH port conflict.
Are you using same .img disk file for both containers? (It should be different for each container.)
Because according to logs it can't get "write" lock. So one one of the containers is not starting. For this reason we see 10022 connection refused in logs. Qemu virtual machine is not alive.
Thanks for your answer, I copied a .img file and it solved the problem
@ZGuQing commented on GitHub (Jun 13, 2022):
> Hi @ZGuQing, as far as I understand from log, it does not seem to be SSH port conflict.
>
> Are you using same `.img` disk file for both containers? (It should be different for each container.)
>
> Because according to logs it can't get "write" lock. So one one of the containers is not starting. For this reason we see `10022 connection refused` in logs. Qemu virtual machine is not alive.
Thanks for your answer, I copied a .img file and it solved the problem
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Originally created by @ZGuQing on GitHub (Jun 7, 2022).
Run multiple containers at the same time, will appear this mistake:
ssh: connect to host 127.0.0.1 port 10022: Connection refused
@csonuryilmaz commented on GitHub (Jun 12, 2022):
Hi @ZGuQing, running multiple containers at the same time requires to set different SSH ports on host.
I'm using both Monterey and Big Sur on my system as guest OS at the same time concurrently. But for Monterey using
50922:10022port mapping and for Big Sur using50923:10022port mapping.@ZGuQing commented on GitHub (Jun 13, 2022):
@csonuryilmaz commented on GitHub (Jun 13, 2022):
Hi @ZGuQing, as far as I understand from log, it does not seem to be SSH port conflict.
Are you using same
.imgdisk file for both containers? (It should be different for each container.)Because according to logs it can't get "write" lock. So one one of the containers is not starting. For this reason we see
10022 connection refusedin logs. Qemu virtual machine is not alive.@ZGuQing commented on GitHub (Jun 13, 2022):
Yes, I used the same
.imgdisk file for both containers, you mean I need to redownload an different.img?@ZGuQing commented on GitHub (Jun 13, 2022):
Thanks for your answer, I copied a .img file and it solved the problem
@VagnerSilva commented on GitHub (Aug 21, 2022):
I solved of the following mode
restart docker
wsl (distro)