4

I am trying to specify in a gitlab runner that I want my docker image, when running, to publish port 8000. I did not find anything in the gitlab documentation that shows how to do it.

Docker says that it should be specified in the command line, when docker runs, but I have no clue how to do that from within a gitlab runner configuration.

Any ideas?

This is my gitlab runner configuration

[[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"]

My docker image exposes port 8000

1 Answer 1

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

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.