我遇到了问题docker compose up
命令。
因此,我最近创建了一个全新的 Ubuntu 操作系统安装,并且一直在设置我的开发环境。我已经安装了 Docker 并mostly一切似乎都运转良好。启动单个容器按预期工作,例如:
~$ docker run hello-world
Hello from Docker!
This message shows that your installation appears to be working correctly.
To generate this message, Docker took the following steps:
1. The Docker client contacted the Docker daemon.
2. The Docker daemon pulled the "hello-world" image from the Docker Hub.
(amd64)
3. The Docker daemon created a new container from that image which runs the
executable that produces the output you are currently reading.
4. The Docker daemon streamed that output to the Docker client, which sent it
to your terminal.
To try something more ambitious, you can run an Ubuntu container with:
$ docker run -it ubuntu bash
Share images, automate workflows, and more with a free Docker ID:
https://hub.docker.com/
For more examples and ideas, visit:
https://docs.docker.com/get-started/
但是,当我尝试使用docker compose up
命令它只是无限期地挂起并且不执行任何操作。它不会显示错误或任何内容,它只是接受命令,将新行打印到终端并挂起。
我花了一整天的时间试图找到问题所在,包括确保系统具有高熵、安装haveged
而且我也在使用 Docker Compose V2,所有这些都按照该线程的建议进行。
docker-compose up 永远挂起。如何调试? https://stackoverflow.com/questions/59941911/docker-compose-up-hangs-forever-how-to-debug
我已经为 docker 引擎分配了超过 24 个核心、64 GB 内存和 400 GiB 虚拟磁盘(也尝试了仅 20 GB 的较小虚拟磁盘),但这似乎没有什么区别。
Ubuntu操作系统安装在2TB NVMe驱动器上,但其余系统信息如下:
Hardware Model: Micro-Star International CO.,Ltd. MS-7C60
Memory: 128.0 GiB
Processor: AMD Ryzen Threadripper 3970x 320core processor x 64
Disk Capacity: 8.2 TB
OS Name: Ubuntu 22.04.2 LTS
OS Type: 64-bit
GNOME Version: 42.5
Windowing System: Wayland
~$ docker version
Client: Docker Engine - Community
Version: 23.0.5
API version: 1.42
Go version: go1.19.8
Git commit: bc4487a
Built: Wed Apr 26 16:21:07 2023
OS/Arch: linux/amd64
Context: default
Server: Docker Engine - Community
Engine:
Version: 23.0.5
API version: 1.42 (minimum version 1.12)
Go version: go1.19.8
Git commit: 94d3ad6
Built: Wed Apr 26 16:21:07 2023
OS/Arch: linux/amd64
Experimental: false
containerd:
Version: 1.6.21
GitCommit: 3dce8eb055cbb6872793272b4f20ed16117344f8
runc:
Version: 1.1.7
GitCommit: v1.1.7-0-g860f061
docker-init:
Version: 0.19.0
GitCommit: de40ad0
~$ docker compose version
Docker Compose version v2.17.3
我不是一个非常有经验的 Ubuntu 用户,虽然我经常使用 Docker,但我并不声称自己是专家,因此非常感谢您提供任何帮助、建议或意见。
Thanks