Docker nginx:在$PATH";中找不到可执行文件:未知的

Docker nginx:在$PATH";中找不到可执行文件:未知的,docker,nginx,redhat,Docker,Nginx,Redhat,我正在尝试使用Redhat UBI映像部署Nginx映像,因为我构建的映像编译时没有错误。我在$PATH:未知中找不到错误的可执行文件 有人能告诉我我的dockerfile缺少什么吗 我正在使用RedHat UBI open images中的图像,使用已提供的容器图像 https://catalog.redhat.com/software/containers/search?q=ubi 下面是我正在使用的Dockerfile FROM registry.access.redhat.com/ub

我正在尝试使用Redhat UBI映像部署Nginx映像,因为我构建的映像编译时没有错误。我在$PATH:未知中找不到错误的可执行文件

有人能告诉我我的dockerfile缺少什么吗

我正在使用RedHat UBI open images中的图像,使用已提供的容器图像

https://catalog.redhat.com/software/containers/search?q=ubi
下面是我正在使用的Dockerfile

FROM registry.access.redhat.com/ubi8/ubi-init
USER root
COPY api-gatway /usr/share/nginx/html
EXPOSE 8080
CMD ["nginx", "-g", "daemon off;"]

下面是我在尝试运行docker映像后遇到的错误

docker run --name testinxcg -d -p 8080:80 test
6220f7274745212afbab07e20bbbf9fa4995a834962b104d7951b6d4965a3237
docker: Error response from daemon: OCI runtime create failed: container_linux.go:346: starting container process caused "exec: \"nginx\": executable file not found in $PATH": unknown.
uk-c02xk2ykjg5j:api-gateway mbyousaf$ 

Red Hat Enterprise Linux(RHEL)8中没有docker,而是一个与OCI兼容的替代方案,称为Podman和Buildah

为了在不需要守护程序的情况下启用容器管理,Red Hat提供了一组用于Linux容器应用程序开发的工具: Buildah允许您在没有任何守护程序或docker的情况下构建容器。 Podman允许您在不依赖守护程序的情况下管理容器,它还与docker cli兼容

#吊舱人拉力

RHEL 8 compatible images can be found [here][2].
#yum安装-y podman

type to use podman in place of docker - for using docker commands
#别名docker=podman

type to use podman in place of docker - for using docker commands

Red Hat Enterprise Linux(RHEL)8中没有docker,而是一个与OCI兼容的替代方案,称为Podman和Buildah

为了在不需要守护程序的情况下启用容器管理,Red Hat提供了一组用于Linux容器应用程序开发的工具: Buildah允许您在没有任何守护程序或docker的情况下构建容器。 Podman允许您在不依赖守护程序的情况下管理容器,它还与docker cli兼容

#吊舱人拉力

RHEL 8 compatible images can be found [here][2].
#yum安装-y podman

type to use podman in place of docker - for using docker commands
#别名docker=podman

type to use podman in place of docker - for using docker commands