相关疑难解决方法(0)

未找到“默认”的 Docker 端点

我确实克隆了一个项目,在第一步中,当我尝试启动容器时,我在项目根目录中运行了 windows CMD,然后输入以下命令:

docker-compose up --build
Run Code Online (Sandbox Code Playgroud)

并向我显示此消息:

找不到“默认”的 docker 端点。

如果有人帮助我,我会非常高兴。当我第一次写这个命令时,我遇到了互联网问题,它暂停了,第二次开始下载一些东西,然后打印了这条消息。

我尝试删除旧容器,也尝试打开和关闭 VPN,然后在 PowerShell 中重新启动 docker。

windows docker docker-compose

84
推荐指数
3
解决办法
4万
查看次数

尝试 pip install 时出现 docker 构建网络错误

作为学习 django 的一部分,我正在构建我的第一个 docker 安装。我的 docker 安装工作正常。码头信息没问题。hello-world 说成功。但是当我运行 Will Vincent 的 Django 3.0 Pro 书中的图例建议的 Dockerfile 时。我收到类似网络 DNS 错误的信息。

################ 错误:

    Step 6/7 : RUN pip install pipenv && pipenv install --system
 ---> Running in 585e5020f53a
    WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x7f339144df10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution')': /simple/pipenv/
   
 WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x7f3391f05a90>: …
Run Code Online (Sandbox Code Playgroud)

django build docker

3
推荐指数
1
解决办法
6330
查看次数

标签 统计

docker ×2

build ×1

django ×1

docker-compose ×1

windows ×1