我试图在gitlab运行器中指定我希望我的docker镜像在运行时发布端口8000.我没有在gitlab文档中找到任何显示如何执行此操作的内容。
Docker说它应该在命令行中指定,当docker运行时,但我不知道如何在gitlab运行器配置中做到这一点。
有什么想法吗?
这是我的gitlab跑步者配置
[[runners]]
name="gitlab.foo.com"
url = "http://gitlab.foo.com/ci"
token = "23foo"
executor = "docker"
[runners.docker]
tls_verify = false
image = "foo/laravel"
privileged = false
disable_cache = false
volumes = ["/cache"]
extra_hosts = ["foo:192.168.1.22"]
我的泊坞窗图片公开了端口8000
答案 0 :(得分:1)
I found that the gitlab-ci-runner using docker should be used for build docker images, or just run some app in a container.
so we can't use that to run a container to publish a port .
I found some something here