Docker Community Forums

Share and learn in the Docker community.

Cannot bind por 80 or 443, Windows

docker

(Brunolm) #1

Expected behavior

Run jwilder/nginx-proxy

Actual behavior

C:\Program Files\Docker\Docker\Resources\bin\docker.exe: Error response from daemon: driver failed programming external connectivity on endpoint dockito-proxy 
(dde2587c8dbbf2032f60ae109ea0569e23d76589485c1b93abecb2a04acaeed1): Error starting userland proxy: write /port/tcp:0.0.0.0:443:tcp:172.17.0.2:443/ctl: errno 526.

Information

Version

Docker version 1.12.0-rc4, build e4a0dbc, experimental
docker-compose version 1.8.0-rc2, build 634ee76

Env

Windows 10 Pro
powershell (as Administrator)

Logs

[14:25:31.989][ProxyProcess   ][Info   ] proxy >> POST /v1.24/containers/create?name=dockito-proxy [rewriteBinds]
[14:25:32.000][ProxyProcess   ][Info   ] Failed to Walk to [snapshots 8254a8c5829e9e056a23f05ac440b965f83532bd ro com.docker.driver.amd64-linux proxy http] 9p: No such file or directory
[14:25:32.003][ProxyProcess   ][Info   ] Failed to read proxies/http from snaphshot p9p.MessageRerror{Ename:"No such file or directory"}
[14:25:32.006][ProxyProcess   ][Info   ] proxy >> POST /v1.24/containers/create?name=dockito-proxy
[14:25:32.009][ProxyProcess   ][Info   ] Dial Hyper-V socket e677d78f-bef3-4736-a0f7-31daaae3ed70:23a432c2-537a-4291-bcb5-d62504644739
[14:25:32.617][ProxyProcess   ][Info   ] proxy << POST /v1.24/containers/create?name=dockito-proxy
[14:25:32.630][ProxyProcess   ][Info   ] proxy >> POST /v1.24/containers/5824040bf88490540b09f0e2bbf03801361d87b21048c12bacd489ed67f3e668/start [start]
[14:25:32.642][ProxyProcess   ][Info   ] proxy >> POST /v1.24/containers/5824040bf88490540b09f0e2bbf03801361d87b21048c12bacd489ed67f3e668/start
[14:25:32.650][ProxyProcess   ][Info   ] Dial Hyper-V socket e677d78f-bef3-4736-a0f7-31daaae3ed70:23a432c2-537a-4291-bcb5-d62504644739
[14:25:33.021][ProxyProcess   ][Debug  ] com.docker.slirp.exe: C ((tag (1))
[14:25:33.024][ProxyProcess   ][Info   ]                                  (payload
[14:25:33.027][ProxyProcess   ][Info   ]                                   (Walk
[14:25:33.029][ProxyProcess   ][Info   ]                                    ((fid 0) (newfid 1)
[14:25:33.032][ProxyProcess   ][Info   ]                                     (wnames
[14:25:33.034][ProxyProcess   ][Info   ]                                      (tcp:0.0.0.0:443:tcp:172.17.0.2:443))))))
[14:25:33.037][ProxyProcess   ][Debug  ] com.docker.slirp.exe: S ((tag (1))
[14:25:33.040][ProxyProcess   ][Info   ]                                  (payload
[14:25:33.042][ProxyProcess   ][Info   ]                                   (Err ((ename "file not found") (errno ())))))
[14:25:33.044][ProxyProcess   ][Debug  ] com.docker.slirp.exe: C ((tag (1))
[14:25:33.046][ProxyProcess   ][Info   ]                                  (payload
[14:25:33.049][ProxyProcess   ][Info   ]                                   (Walk ((fid 0) (newfid 1) (wnames ())))))
[14:25:33.051][ProxyProcess   ][Debug  ] com.docker.slirp.exe: S ((tag (1)) (payload (Walk ((wqids ())))))
[14:25:33.054][ProxyProcess   ][Debug  ] com.docker.slirp.exe: C ((tag (1))
[14:25:33.056][ProxyProcess   ][Info   ]                                  (payload
[14:25:33.058][ProxyProcess   ][Info   ]                                   (Create
[14:25:33.061][ProxyProcess   ][Info   ]                                    ((fid 1)
[14:25:33.063][ProxyProcess   ][Info   ]                                     (name tcp:0.0.0.0:443:tcp:172.17.0.2:443)
[14:25:33.065][ProxyProcess   ][Info   ]                                     (perm
[14:25:33.068][ProxyProcess   ][Info   ]                                      ((owner ()) (group ()) (other ())
[14:25:33.070][ProxyProcess   ][Info   ]                                       (is_directory true) (append_only false)
[14:25:33.073][ProxyProcess   ][Info   ]                                       (exclusive false) (is_mount false)
[14:25:33.076][ProxyProcess   ][Info   ]                                       (is_auth false) (temporary false)
[14:25:33.078][ProxyProcess   ][Info   ]                                       (is_device false) (is_symlink false)
[14:25:33.081][ProxyProcess   ][Info   ]                                       (is_hardlink false)
[14:25:33.083][ProxyProcess   ][Info   ]                                       (is_namedpipe false) (is_socket false)
[14:25:33.086][ProxyProcess   ][Info   ]                                       (is_setuid false) (is_setgid false)
[14:25:33.088][ProxyProcess   ][Info   ]                                       (is_any false)))
[14:25:33.091][ProxyProcess   ][Info   ]                                     (mode
[14:25:33.093][ProxyProcess   ][Info   ]                                      ((io Read) (truncate false)
[14:25:33.095][ProxyProcess   ][Info   ]                                       (rclose false) (append false)))
[14:25:33.098][ProxyProcess   ][Info   ]                                     (extension ())))))
[14:25:33.101][ProxyProcess   ][Info   ] com.docker.slirp.exe: Creating resource Entry(tcp:0.0.0.0:443:tcp:172.17.0.2:443)
[14:25:33.103][ProxyProcess   ][Debug  ] com.docker.slirp.exe: S ((tag (1))
[14:25:33.106][ProxyProcess   ][Info   ]                                  (payload
[14:25:33.108][ProxyProcess   ][Info   ]                                   (Create
[14:25:33.110][ProxyProcess   ][Info   ]                                    ((qid
[14:25:33.112][ProxyProcess   ][Info   ]                                      ((flags (Directory)) (version 0)
[14:25:33.115][ProxyProcess   ][Info   ]                                       (id 204)))
[14:25:33.117][ProxyProcess   ][Info   ]                                     (iounit 512)))))
[14:25:33.120][ProxyProcess   ][Debug  ] com.docker.slirp.exe: C ((tag (1))
[14:25:33.122][ProxyProcess   ][Info   ]                                  (payload
[14:25:33.124][ProxyProcess   ][Info   ]                                   (Walk
[14:25:33.127][ProxyProcess   ][Info   ]                                    ((fid 0) (newfid 2)
[14:25:33.129][ProxyProcess   ][Info   ]                                     (wnames
[14:25:33.131][ProxyProcess   ][Info   ]                                      (tcp:0.0.0.0:443:tcp:172.17.0.2:443))))))
[14:25:33.134][ProxyProcess   ][Debug  ] com.docker.slirp.exe: S ((tag (1))
[14:25:33.136][ProxyProcess   ][Info   ]                                  (payload
[14:25:33.138][ProxyProcess   ][Info   ]                                   (Walk
[14:25:33.140][ProxyProcess   ][Info   ]                                    ((wqids
[14:25:33.143][ProxyProcess   ][Info   ]                                      (((flags (Directory)) (version 0)
[14:25:33.145][ProxyProcess   ][Info   ]                                        (id 206))))))))
[14:25:33.148][ProxyProcess   ][Debug  ] com.docker.slirp.exe: C ((tag (1)) (payload (Stat ((fid 2)))))
[14:25:33.150][ProxyProcess   ][Debug  ] com.docker.slirp.exe: S ((tag (1))
[14:25:33.152][ProxyProcess   ][Info   ]                                  (payload
[14:25:33.154][ProxyProcess   ][Info   ]                                   (Stat
[14:25:33.157][ProxyProcess   ][Info   ]                                    ((stat
[14:25:33.159][ProxyProcess   ][Info   ]                                      ((ty 65535) (dev -1)
[14:25:33.161][ProxyProcess   ][Info   ]                                       (qid ((flags ()) (version 0) (id 207)))
[14:25:33.164][ProxyProcess   ][Info   ]                                       (mode
[14:25:33.166][ProxyProcess   ][Info   ]                                        ((owner (Read Execute))
[14:25:33.169][ProxyProcess   ][Info   ]                                         (group (Read Execute))
[14:25:33.172][ProxyProcess   ][Info   ]                                         (other (Read Execute))
[14:25:33.176][ProxyProcess   ][Info   ]                                         (is_directory true)
[14:25:33.181][ProxyProcess   ][Info   ]                                         (append_only false) (exclusive false)
[14:25:33.186][ProxyProcess   ][Info   ]                                         (is_mount false) (is_auth false)
[14:25:33.191][ProxyProcess   ][Info   ]                                         (temporary false) (is_device false)
[14:25:33.196][ProxyProcess   ][Info   ]                                         (is_symlink false)
[14:25:33.201][ProxyProcess   ][Info   ]                                         (is_hardlink false)
[14:25:33.206][ProxyProcess   ][Info   ]                                         (is_namedpipe false)
[14:25:33.212][ProxyProcess   ][Info   ]                                         (is_socket false) (is_setuid false)
[14:25:33.220][ProxyProcess   ][Info   ]                                         (is_setgid false) (is_any false)))
[14:25:33.228][ProxyProcess   ][Info   ]                                       (atime 1146711721) (mtime 1146711721)
[14:25:33.233][ProxyProcess   ][Info   ]                                       (length 0)
[14:25:33.239][ProxyProcess   ][Info   ]                                       (name
[14:25:33.244][ProxyProcess   ][Info   ]                                        tcp:0.0.0.0:443:tcp:172.17.0.2:443)
[14:25:33.249][ProxyProcess   ][Info   ]                                       (uid uid) (gid gid) (muid muid) 
[14:25:33.254][ProxyProcess   ][Info   ]                                       (u ())))))))
[14:25:33.259][ProxyProcess   ][Debug  ] com.docker.slirp.exe: C ((tag (1)) (payload (Clunk ((fid 1)))))
[14:25:33.264][ProxyProcess   ][Debug  ] com.docker.slirp.exe: S ((tag (1)) (payload (Clunk ())))
[14:25:33.269][ProxyProcess   ][Debug  ] com.docker.slirp.exe: C ((tag (1)) (payload (Clunk ((fid 2)))))
[14:25:33.274][ProxyProcess   ][Debug  ] com.docker.slirp.exe: S ((tag (1)) (payload (Clunk ())))
[14:25:33.279][ProxyProcess   ][Debug  ] com.docker.slirp.exe: C ((tag (1))
[14:25:33.284][ProxyProcess   ][Info   ]                                  (payload
[14:25:33.289][ProxyProcess   ][Info   ]                                   (Walk
[14:25:33.294][ProxyProcess   ][Info   ]                                    ((fid 0) (newfid 1)
[14:25:33.300][ProxyProcess   ][Info   ]                                     (wnames
[14:25:33.305][ProxyProcess   ][Info   ]                                      (tcp:0.0.0.0:443:tcp:172.17.0.2:443))))))
[14:25:33.309][ProxyProcess   ][Debug  ] com.docker.slirp.exe: S ((tag (1))
[14:25:33.314][ProxyProcess   ][Info   ]                                  (payload
[14:25:33.319][ProxyProcess   ][Info   ]                                   (Walk
[14:25:33.324][ProxyProcess   ][Info   ]                                    ((wqids
[14:25:33.329][ProxyProcess   ][Info   ]                                      (((flags (Directory)) (version 0)
[14:25:33.335][ProxyProcess   ][Info   ]                                        (id 209))))))))
[14:25:33.340][ProxyProcess   ][Debug  ] com.docker.slirp.exe: C ((tag (1)) (payload (Stat ((fid 1)))))
[14:25:33.345][ProxyProcess   ][Debug  ] com.docker.slirp.exe: S ((tag (1))
[14:25:33.349][ProxyProcess   ][Info   ]                                  (payload
[14:25:33.354][ProxyProcess   ][Info   ]                                   (Stat
[14:25:33.358][ProxyProcess   ][Info   ]                                    ((stat
[14:25:33.362][ProxyProcess   ][Info   ]                                      ((ty 65535) (dev -1)
[14:25:33.366][ProxyProcess   ][Info   ]                                       (qid ((flags ()) (version 0) (id 210)))
[14:25:33.369][ProxyProcess   ][Info   ]                                       (mode
[14:25:33.373][ProxyProcess   ][Info   ]                                        ((owner (Read Execute))
[14:25:33.376][ProxyProcess   ][Info   ]                                         (group (Read Execute))
[14:25:33.379][ProxyProcess   ][Info   ]                                         (other (Read Execute))
[14:25:33.383][ProxyProcess   ][Info   ]                                         (is_directory true)
[14:25:33.388][ProxyProcess   ][Info   ]                                         (append_only false) (exclusive false)
[14:25:33.394][ProxyProcess   ][Info   ]                                         (is_mount false) (is_auth false)
[14:25:33.398][ProxyProcess   ][Info   ]                                         (temporary false) (is_device false)
[14:25:33.403][ProxyProcess   ][Info   ]                                         (is_symlink false)
[14:25:33.408][ProxyProcess   ][Info   ]                                         (is_hardlink false)
[14:25:33.415][ProxyProcess   ][Info   ]                                         (is_namedpipe false)
[14:25:33.424][ProxyProcess   ][Info   ]                                         (is_socket false) (is_setuid false)
[14:25:33.436][ProxyProcess   ][Info   ]                                         (is_setgid false) (is_any false)))
[14:25:33.442][ProxyProcess   ][Info   ]                                       (atime 1146711721) (mtime 1146711721)
[14:25:33.447][ProxyProcess   ][Info   ]                                       (length 0)
[14:25:33.453][ProxyProcess   ][Info   ]                                       (name
[14:25:33.458][ProxyProcess   ][Info   ]                                        tcp:0.0.0.0:443:tcp:172.17.0.2:443)
[14:25:33.463][ProxyProcess   ][Info   ]                                       (uid uid) (gid gid) (muid muid) 
[14:25:33.468][ProxyProcess   ][Info   ]                                       (u ())))))))
[14:25:33.474][ProxyProcess   ][Debug  ] com.docker.slirp.exe: C ((tag (1))
[14:25:33.479][ProxyProcess   ][Info   ]                                  (payload
[14:25:33.484][ProxyProcess   ][Info   ]                                   (Walk ((fid 1) (newfid 2) (wnames (ctl))))))
[14:25:33.489][ProxyProcess   ][Debug  ] com.docker.slirp.exe: S ((tag (1))
[14:25:33.494][ProxyProcess   ][Info   ]                                  (payload
[14:25:33.499][ProxyProcess   ][Info   ]                                   (Walk
[14:25:33.505][ProxyProcess   ][Info   ]                                    ((wqids
[14:25:33.510][ProxyProcess   ][Info   ]                                      (((flags ()) (version 0) (id 212))))))))
[14:25:33.515][ProxyProcess   ][Debug  ] com.docker.slirp.exe: C ((tag (1)) (payload (Stat ((fid 2)))))
[14:25:33.520][ProxyProcess   ][Debug  ] com.docker.slirp.exe: S ((tag (1))
[14:25:33.525][ProxyProcess   ][Info   ]                                  (payload
[14:25:33.530][ProxyProcess   ][Info   ]                                   (Stat
[14:25:33.536][ProxyProcess   ][Info   ]                                    ((stat
[14:25:33.541][ProxyProcess   ][Info   ]                                      ((ty 65535) (dev -1)
[14:25:33.546][ProxyProcess   ][Info   ]                                       (qid ((flags ()) (version 0) (id 213)))
[14:25:33.551][ProxyProcess   ][Info   ]                                       (mode
[14:25:33.556][ProxyProcess   ][Info   ]                                        ((owner (Read Write))
[14:25:33.561][ProxyProcess   ][Info   ]                                         (group (Read Write))
[14:25:33.566][ProxyProcess   ][Info   ]                                         (other (Read Write))
[14:25:33.570][ProxyProcess   ][Info   ]                                         (is_directory false)
[14:25:33.574][ProxyProcess   ][Info   ]                                         (append_only false) (exclusive false)
[14:25:33.578][ProxyProcess   ][Info   ]                                         (is_mount false) (is_auth false)
[14:25:33.582][ProxyProcess   ][Info   ]                                         (temporary false) (is_device false)
[14:25:33.585][ProxyProcess   ][Info   ]                                         (is_symlink false)
[14:25:33.588][ProxyProcess   ][Info   ]                                         (is_hardlink false)
[14:25:33.590][ProxyProcess   ][Info   ]                                         (is_namedpipe false)
[14:25:33.593][ProxyProcess   ][Info   ]                                         (is_socket false) (is_setuid false)
[14:25:33.595][ProxyProcess   ][Info   ]                                         (is_setgid false) (is_any false)))
[14:25:33.598][ProxyProcess   ][Info   ]                                       (atime 1146711721) (mtime 1146711721)
[14:25:33.600][ProxyProcess   ][Info   ]                                       (length 0) (name ctl) (uid uid)
[14:25:33.603][ProxyProcess   ][Info   ]                                       (gid gid) (muid muid) (u ())))))))
[14:25:33.605][ProxyProcess   ][Debug  ] com.docker.slirp.exe: C ((tag (1))
[14:25:33.608][ProxyProcess   ][Info   ]                                  (payload
[14:25:33.610][ProxyProcess   ][Info   ]                                   (Walk ((fid 2) (newfid 3) (wnames ())))))
[14:25:33.612][ProxyProcess   ][Debug  ] com.docker.slirp.exe: S ((tag (1)) (payload (Walk ((wqids ())))))
[14:25:33.615][ProxyProcess   ][Debug  ] com.docker.slirp.exe: C ((tag (1))
[14:25:33.617][ProxyProcess   ][Info   ]                                  (payload
[14:25:33.619][ProxyProcess   ][Info   ]                                   (Open
[14:25:33.622][ProxyProcess   ][Info   ]                                    ((fid 3)
[14:25:33.624][ProxyProcess   ][Info   ]                                     (mode
[14:25:33.627][ProxyProcess   ][Info   ]                                      ((io ReadWrite) (truncate false)
[14:25:33.629][ProxyProcess   ][Info   ]                                       (rclose false) (append false)))))))
[14:25:33.632][ProxyProcess   ][Debug  ] com.docker.slirp.exe: S ((tag (1))
[14:25:33.634][ProxyProcess   ][Info   ]                                  (payload
[14:25:33.636][ProxyProcess   ][Info   ]                                   (Open
[14:25:33.639][ProxyProcess   ][Info   ]                                    ((qid ((flags ()) (version 0) (id 215)))
[14:25:33.641][ProxyProcess   ][Info   ]                                     (iounit 32768)))))
[14:25:33.643][ProxyProcess   ][Debug  ] com.docker.slirp.exe: C tag 1 Write(fid: 3, offset: 0, len(data): 34)
[14:25:33.645][ProxyProcess   ][Info   ] com.docker.slirp.exe: Write offset=0 data=[tcp:0.0.0.0:443:tcp:172.17.0.2:443] to file
[14:25:33.648][ProxyProcess   ][Debug  ] com.docker.slirp.exe: S ((tag (1))
[14:25:33.650][ProxyProcess   ][Info   ]                                  (payload
[14:25:33.652][ProxyProcess   ][Info   ]                                   (Err
[14:25:33.655][ProxyProcess   ][Info   ]                                    ((ename
[14:25:33.658][ProxyProcess   ][Info   ]                                      "\"Assert_failure lib/host_uwt.ml:371:17\"")
[14:25:33.660][ProxyProcess   ][Info   ]                                     (errno ())))))
[14:25:33.663][ProxyProcess   ][Debug  ] com.docker.slirp.exe: C ((tag (1)) (payload (Clunk ((fid 3)))))
[14:25:33.665][ProxyProcess   ][Debug  ] com.docker.slirp.exe: S ((tag (1)) (payload (Clunk ())))
[14:25:33.668][ProxyProcess   ][Debug  ] com.docker.slirp.exe: C ((tag (1)) (payload (Clunk ((fid 2)))))
[14:25:33.670][ProxyProcess   ][Debug  ] com.docker.slirp.exe: S ((tag (1)) (payload (Clunk ())))
[14:25:33.672][ProxyProcess   ][Debug  ] com.docker.slirp.exe: C ((tag (1)) (payload (Clunk ((fid 1)))))
[14:25:33.674][ProxyProcess   ][Debug  ] com.docker.slirp.exe: S ((tag (1)) (payload (Clunk ())))
[14:25:33.938][ProxyProcess   ][Info   ] proxy << POST /v1.24/containers/5824040bf88490540b09f0e2bbf03801361d87b21048c12bacd489ed67f3e668/start
[14:25:36.969][FeedbackSettings][Info   ] Open logs

Steps to reproduce the behavior

Command:

  1. docker run --privileged=true -d --name dockito-proxy -p 80:80 -p 443:443 jwilder/nginx-proxy

Obs

  • Running the command without any ports work.
  • Running the command with only another port (ex -p 8011:8011) works

(Vduseev) #2

I can confirm.

docker run -d -p 80:80 --name webserver nginx
Unable to find image 'nginx:latest' locally
latest: Pulling from library/nginx
51f5c6a04d83: Pull complete
a3ed95caeb02: Pull complete
51d229e136d0: Pull complete
bcd41daec8cc: Pull complete
Digest: sha256:0fe6413f3e30fcc5920bc8fa769280975b10b1c26721de956e1428b9e2f29d04
Status: Downloaded newer image for nginx:latest
d4de3d2976d23a50de1e7ec43a69a51a589b0ae7c1b3fd1e34ff2d8f5eed2135
docker: Error response from daemon: driver failed programming external connectivity on endpoint webserver (c35c320fe2b2b339b1253f358baebbe5005a436eb5693bb103b8a2d7c18a5a2e): Error starting userland proxy: write /port/tcp:0.0.0.0:80:tcp:172.17.0.2:80/ctl: errno 526.

(Michael Friis) #3

Sorry about the slow response - are you still seeing this problem?

It may be that some other (non-Docker-related) service is bound to port 80 and 443 on your machine.


(Brunolm) #4

No, I think they fixed it.

Also, I found out that Skype desktop can cause problems on port 443. If that happens shutdown Skype