无法使用端口80:80

时间:2019-06-30 13:47:55

标签: image docker nginx

我想使用docker run命令将主机上的端口80连接到docker容器的端口80。

sudo docker run -p 80:80 jstuettc/campusconnection-ws:latest

显示:

docker: Error response from daemon: driver failed programming external connectivity on endpoint goofy_ramanujan (de4785796d3fec97f1449dca87d8543e49168d28d0958087e456b9fb3a6f4a4c): Error starting userland proxy: listen tcp 0.0.0.0:80: bind: address already in use.

我试图删除nginx图像(应该用于端口80)

gcloud container images delete us.gcr.io/docker-yhutagal-lab-03/nginx@sha256:bdbf36b7f1f77ffe7bd2a32e59235dff6ecf131e3b6b5b96061c652f30685f3a

显示:

Digests:
- us.gcr.io/docker-yhutagal-lab-03/nginx@sha256:bdbf36b7f1f77ffe7bd2a32e59235dff6ecf131e3b6b5b96061c652f30685f3a
This operation will delete the tags and images identified by the
digests above.
Do you want to continue (Y/n)?  y
ERROR: (gcloud.container.images.delete) Not found: response: {'status': '404', 'content-length': '168', 'x-xss-protection': '0', 'transfer-encoding': 'chunked', 'se
rver': 'Docker Registry', '-content-encoding': 'gzip', 'docker-distribution-api-version': 'registry/2.0', 'cache-control': 'private', 'date': 'Sun, 30 Jun 2019 13:3
6:48 GMT', 'x-frame-options': 'SAMEORIGIN', 'content-type': 'application/json'}
Failed to compute blob liveness for manifest: 'sha256:bdbf36b7f1f77ffe7bd2a32e59235dff6ecf131e3b6b5b96061c652f30685f3a': None

我该如何解决该解决方案?

0 个答案:

没有答案