Networking 如何使用podman虚拟主机

Networking 如何使用podman虚拟主机,networking,centos,gitlab-ce,podman,Networking,Centos,Gitlab Ce,Podman,我的服务器在podman中运行gitlab 我想要一个子域的gitlab连接 测试命令 podman start gitlab-ce --VIRTUAL-HOST=test.example.com -p 80 如何在podman中设置虚拟主机?根据,容器可以通过以下方式启动: sudo podman run --detach \ --hostname gitlab.example.com \ --env GITLAB_OMNIBUS_CONFIG="external_url 'htt

我的服务器在podman中运行gitlab

我想要一个子域的gitlab连接

测试命令

podman start gitlab-ce --VIRTUAL-HOST=test.example.com -p 80 
如何在podman中设置虚拟主机?

根据,容器可以通过以下方式启动:

sudo podman run --detach \
  --hostname gitlab.example.com \
  --env GITLAB_OMNIBUS_CONFIG="external_url 'http://test.example.com/';" \
  --publish 443:443 --publish 80:80 \
  --name gitlab \
  --restart always \
  gitlab/gitlab-ce:latest

sudo
需要绑定端口80和443。

我的服务器有很多服务。我想要80端口没有gitlab。因为我的服务使用80端口。example1.test.com连接我的服务example2.test.com连接我的服务2您需要在服务前面配置反向代理(例如
traefik
haproxy
nginx
)。这不是GitLab映像可以解决的问题。