Access to docker runner from service

I have problem with access to docker runner from another docker. I have .gitlab-ci.yml like below

before_script:
  - apt-get update -qq && apt-get install -y -qq sqlite3 libsqlite3-dev nodejs curl
  - ruby -v
  - which ruby
  - gem install bundler --no-ri --no-rdoc
  - bundle install --jobs $(nproc)  "${FLAGS[@]}"

services:
  - "selenium/standalone-chrome:latest"

cache:
  key: "${CI_PROJECT_ID}"
  untracked: true
  paths:
  - "vendor/"

stages:
  - analysis
  - test

rubocop:
  stage: analysis
  script:
    - bundle exec rubocop

selenium:
  stage: test
  script:
    - RUBY_ENV=ci bundle exec ruby app.rb &
    - sleep 10
    - RUBY_ENV=ci bundle exec rspec spec/functional

I’m trying to get web site via selenium and i don’t know what is valid hostname of my gitlab runner. I tried localhost:4567 and runner-ee7fe14d-project-560-concurrent-0:4567 and both didn’t work.

If I call

curl localhost:4567

from runner I get expected html.

How can I connect from selenium to my app?

Were you able to get around this issue? I’m running into the same thing. Thanks!