-
Notifications
You must be signed in to change notification settings - Fork 65
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot connect to container after setup #31
Comments
Docker Engine: |
% docker run --rm --privileged --pid=host debian nsenter -t 1 -m -u -n -i iptables-save
nsenter: failed to execute iptables-save: No such file or directory |
@normtown if you check the README, there is an additional note under the command you're using Can you try this command instead?
Then attempt to ping the container? I keep all the latest wrappings for this system within the nodejs docker helpers package I created |
Thanks for that clarification. I ran the command. There were no error messages, but also still no change in behavior. My laptop shell still cannot connect to On a side note, it wasn't clear to me that I needed to run that command because the README says:
I read that as neither command (above or below) being necessary when running a version greater than 17.12.0. In my case, I'm running 18.09.2. |
so to clarify you followed these steps:
let me know if the above helps in any way P.S. Also check this issue for a list of information you can provide me to help debug the issue: #11 Example docker-compose file:
|
@normtown any update on this? |
I really don't get why this is not working. I'm simply running a netcat listener in my container:
...and trying to connect from my laptop's shell, which fails:
Before doing this test, I had set up a route on my laptop that uses the
10.0.75.2
gateway:...which we can see here:
We can see the
tap1
virtual device is present on the laptop:...and we can see the network devices in the container here:
Hyperkit appears to be running with the
tap1
device passed to it:One thing that seems a little odd to me is that bus 2 has both a "hard disk" on it (
ahci-hd
) and the tap device that was injected by the shim script (virtio-tap
). The script seems to assume that anything on bus 2 is a network device. I'm curious why that is the case.Interestingly, the laptop cannot connect to the host VM either. I can get a shell with
screen
:% screen ~/Library/Containers/com.docker.docker/Data/vms/0/tty
Here's
ifconfig
from the host VM:And I run a netcat listener in the host VM:
...with the same result when I try to connect from the Mac shell:
For completeness, here's the rest of any debug info I can think of giving.
The route table on the host VM:
And the tuntap devices installed on the Mac:
The text was updated successfully, but these errors were encountered: