我是碼頭工人,嘗試運行以下代碼並獲取下面的錯誤。docker命令沒有運行
Nihits-MacBook-Pro:~ nihit$ docker container run --publish 80:80 nginx
Unable to find image 'nginx:latest' locally
latest: Pulling from library/nginx
bc95e04b23c0: Pull complete
110767c6efff: Pull complete
f081e0c4df75: Pull complete
Digest: sha256:004ac1d5e791e705f12a17c80d7bb1e8f7f01aa7dca7deee6e65a03465392072
Status: Downloaded newer image for nginx:latest
docker: Error response from daemon: driver failed programming external connectivity on endpoint gracious_pare (0a28a065694108085e2b7533870d9d84889899baf5d4130c58c49c4736bb6b12): Error starting userland proxy: Bind for 0.0.0.0:80: unexpected error (Failure EADDRINUSE).
ERRO[0016] error waiting for container: context canceled
我嘗試了與端口不同的代碼,但它們都卡住了,不做任何事情。
Nihits-MacBook-Pro:~ nihit$ docker container run --publish 3000:80 nginx
Nihits-MacBook-Pro:~ nihit$ docker container run --publish 8080:80 nginx
他們沒有工作,只是被困在終端上。
同樣的錯誤:(,我嘗試了不同的端口 –
其實現在它給了我一個字符串c5ad07c99829b35989422ff6f48dbdea716c54908528d5ed08287d327e72693a –
,你會介意讓我知道你的機器上執行的「泊塢窗PS -A」的結果 –