- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
如果我为服务拉取图像,Docker compose 将与 podman 一起使用,但在我尝试构建图像时将无法使用。
Dockerfile
FROM docker.io/hello-world
$ docker build --tag uscm5 .
STEP 1: FROM docker.io/hello-world
STEP 2: COMMIT uscm5
--> d1165f22123
Successfully tagged localhost/uscm5:latest
Successfully tagged docker.io/library/hello-world:latest
d1165f2212346b2bab48cb01c1e39ee8ad1be46b87873d9ca7a4e434980a7726
docker-compose.yml
services:
web:
build: .
# image: docker.io/hello-world
$ docker-compose up
Building web
Traceback (most recent call last):
File "docker-compose", line 3, in <module>
File "compose/cli/main.py", line 81, in main
File "compose/cli/main.py", line 203, in perform_command
File "compose/metrics/decorator.py", line 18, in wrapper
File "compose/cli/main.py", line 1186, in up
File "compose/cli/main.py", line 1182, in up
File "compose/project.py", line 664, in up
File "compose/service.py", line 364, in ensure_image_exists
File "compose/service.py", line 1133, in build
File "compose/service.py", line 1943, in build
File "subprocess.py", line 800, in __init__
File "subprocess.py", line 1551, in _execute_child
FileNotFoundError: [Errno 2] No such file or directory: 'docker': 'docker'
[579202] Failed to execute script docker-compose
我的环境和程序版本似乎正确:
$ docker-compose -v && podman -v && lsb_release -r
docker-compose version 1.29.2, build 5becea4c
podman version 3.2.3
Release: 21.04
$ printenv | grep -e DOCKER -e COMPOSE
DOCKER_HOST=unix:///run/user/1000/podman/podman.sock
我错过了什么?
最佳答案
设置COMPOSE_DOCKER_CLI_BUILD=0
就是它所在的位置 - 谢谢@Luap99 在 GitHub。 https://github.com/containers/podman/issues/11052
Docker Compose 使用 Docker CLI 而不是 DOCKER_HOST 处的套接字。如果我有 alias docker=podman
,也许我不会注意到但与 COMPOSE_DOCKER_CLI_BUILD=0
将使用 docker 客户端而不是 CLI。
关于ubuntu - Docker Compose 无法使用 Podman 构建,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/68507359/
我正在运行一些应用程序,其中应用程序必须知道它在 PODMAN 内运行而无需任何额外的环境变量,但容器内的 podman 配置必须提供详细信息而无需任何用户交互。 截至目前,我正在使用 cat /pr
当我做类似 podman rmi d61259d8f7a7 -f 的事情时它失败并显示一条消息:Error: unable to delete "vvvvvvvvvvvv" (cannot be fo
我的主目录中几乎没有剩余的磁盘空间,但是 我在目录/scratch/tmpexperiment 中有很多磁盘空间。该目录现在是空的。 我想试试命令 podman和 buildah (只是为了实验和学习
我正在尝试在 Red Hat Enterprise Linux 8 (CentoOS 8) 虚拟机中设置构建服务器。 我通过运行 sudo dnf install -y @container-tool
一个非 root 用户一直在尝试运行 podman 和 buildah 命令,但现在只想重置所有内容恢复到开始实验前的状态(即所有容器镜像和容器应该连同 buildah 和 podman 配置一起删除
我在 RHEL8 上运行 podman 2.0.5,我对使用 sudo 与不使用 sudo 调用命令时它的工作原理感到困惑。特别令人困惑的是当我运行端口映射并试图通过主机公开端口时。使用 sudo p
有没有办法在 Podman 中运行 Podman,类似于在 Docker 中运行 Docker 的方式? 这是我的 Dockerfile 的一个片段,它强烈基于 another question :
我对firewalld、podman 和UDP/Multicast 越来越着迷。当我看到 UDP 数据包到达 podman 时;使用 tcpdump 命令确认。看来我无法配置使用名为 knx_mult
我正在 MacOS Catalina 10.15.7 中安装 podman: ~/source/dabai/microservice/soa-illidan-hub on feature/card
我正在尝试使用 podman 桌面替换 docker 桌面。当我安装这个podman桌面并打开它时,它一直处于初始化状态。我不知道它有什么问题。有人遇到过同样的问题吗? 我想安装和使用 podman
我想要完成的是连接到安装在主机系统上的数据库。现在有一个similar question already for docker ,但我无法让它与 Podman 一起工作,我想是因为网络在这里的工作方式
是否可以为已经运行的 pod 额外公开端口? 如果我创建一个新的 pod,我会为它们提供 podman pod create ... -p 8080:80 . 但是,我不想扔掉我的 pod,只需修改它
我想知道是否可以运行一个 rootless podman 容器在容器内启用 systemd(不要与控制容器本身的 systemd 服务混淆)在主机系统级别!)?如果是,我需要什么? 这是一个简单的 D
是否有可能使用 podman 更改容器重启策略?我们可以在创建容器时设置策略 podman run --restart always ,但是创建容器时如何更改它? 使用 docker 我们有 dock
我的服务器在 podman 中运行 gitlab。 我想要 gitlab 连接子域。 测试命令 podman start gitlab-ce --VIRTUAL-HOST=test.example.c
对于 docker,这可以通过在容器内安装 docker.sock 来实现。 但是由于podman中没有守护进程。 docker.sock 的替代品是什么? 我通常想检查主机上显示的 podman 镜
我正在尝试浏览一个在 docker/podman 容器实例中启动应用程序的教程。 我尝试使用 -p port:port 和 --expose port 但似乎都不起作用。 我已使用 ss -an 确保
我正在尝试浏览一个在 docker/podman 容器实例中启动应用程序的教程。 我尝试使用 -p port:port 和 --expose port 但似乎都不起作用。 我已使用 ss -an 确保
尝试这个命令 podman login -u xxx@xxx.com -p XXX@XXX_XXXXX -v docker.io
我正在使用 podman 在 CentOS 上运行虚拟环境。当我使用 podman run 命令的 --net 选项时,出现错误。 [user@server ~]$ podman run --net
我是一名优秀的程序员,十分优秀!