sergeycherepanov / homebrew-docker-virtualbox

Docker workaround for Ryzentosh (AMD based Hackintosh)
209 stars 20 forks source link

after stopping any container the rest of them become not-reachable from the host machine #23

Closed Vasiliy-Bondarenko closed 3 years ago

Vasiliy-Bondarenko commented 3 years ago

after stopping any container the rest of them become not-reachable from the host machine. sometimes it happens without any specific action - they just stop responding from host machine. while containers are still running fine inside VM and can interact between each other.

to replicate:

> docker run -d -p 8990:80 nginx
da1861a59e200fc8ecffff128ba880cf6f4fd720c246b2e8562bf01a9b3a9dcc
> docker run -d -p 8989:80 nginx
1c053364e80b96799e485968336be29dc39fcf7149f69a9f4ed48d7fdb881a0d
> curl -v localhost:8989
*   Trying ::1...
* TCP_NODELAY set
* Connected to localhost (::1) port 8989 (#0)
> GET / HTTP/1.1
> Host: localhost:8989
> User-Agent: curl/7.64.1
> Accept: */*
>
< HTTP/1.1 200 OK
< Server: nginx/1.21.1
< Date: Mon, 23 Aug 2021 15:42:30 GMT
< Content-Type: text/html
< Content-Length: 612
< Last-Modified: Tue, 06 Jul 2021 14:59:17 GMT
< Connection: keep-alive
< ETag: "60e46fc5-264"
< Accept-Ranges: bytes
<
<!DOCTYPE html>
<html>
<head>
<title>Welcome to nginx!</title>
<style>
    body {
        width: 35em;
        margin: 0 auto;
        font-family: Tahoma, Verdana, Arial, sans-serif;
    }
</style>
</head>
<body>
<h1>Welcome to nginx!</h1>
<p>If you see this page, the nginx web server is successfully installed and
working. Further configuration is required.</p>

<p>For online documentation and support please refer to
<a href="http://nginx.org/">nginx.org</a>.<br/>
Commercial support is available at
<a href="http://nginx.com/">nginx.com</a>.</p>

<p><em>Thank you for using nginx.</em></p>
</body>
</html>
* Connection #0 to host localhost left intact
* Closing connection 0

> docker ps
CONTAINER ID        IMAGE               COMMAND                  CREATED             STATUS              PORTS                  NAMES
1c053364e80b        nginx               "/docker-entrypoint.…"   9 seconds ago       Up 8 seconds        0.0.0.0:8989->80/tcp   zen_fermat
da1861a59e20        nginx               "/docker-entrypoint.…"   17 seconds ago      Up 16 seconds       0.0.0.0:8990->80/tcp   ecstatic_euclid

> docker stop da1861a59e20
da1861a59e20

> curl -v localhost:8989
*   Trying ::1...
* TCP_NODELAY set
* Connection failed
* connect to ::1 port 8989 failed: Connection refused
*   Trying 127.0.0.1...
* TCP_NODELAY set
* Connection failed
* connect to 127.0.0.1 port 8989 failed: Connection refused
* Failed to connect to localhost port 8989: Connection refused
* Closing connection 0
curl: (7) Failed to connect to localhost port 8989: Connection refused
gerald24 commented 3 years ago

I tried to reproduce this issue but works for me running on Ryzentosh 10.15.7 w/ Box 6.1.22. All other docker container stay responsive.

Vasiliy-Bondarenko commented 3 years ago

i have upgraded brew package - seems to be working now. will reopen if it happens again.