Service aliases are not ping
I have next ci file
variables: ZOOKEEPER_CLIENT_PORT: '2181' ZOOKEEPER_TICK_TIME: '2000' services: - name: confluentinc/cp-zookeeper alias: zookeeper ping: image: python:2 script: - ping -c 1 zookeper
And I try to run it with exec command
(venv) ➜ bw-kafka git:(refactor) ✗ gitlab-runner exec docker ping WARNING: Since GitLab Runner 10.0 this command is marked as DEPRECATED and will be removed in one of upcoming releases WARNING: You most probably have uncommitted changes. WARNING: These changes will not be tested. Running with gitlab-runner 10.0.2 (a9a76a50) on () Using Docker executor with image python:2 ... Starting service confluentinc/cp-zookeeper:latest ... Pulling docker image confluentinc/cp-zookeeper:latest ... Using docker image confluentinc/cp-zookeeper:latest ID=sha256:7d8fb327b1f68c58da35fb0b8094ef003437c477371f0051ed0d98d17e5294bd for confluentinc/cp-zookeeper service... Waiting for services to be up and running... Using docker image sha256:e3075c6b18b79a9456340fd8c93dac59f9ca2784c0fe918ba94fcb78d3a0c804 for predefined container... Pulling docker image python:2 ... Using docker image python:2 ID=sha256:b1d5c2d7dda802e246cbbbaf058377edba0b7acfd5950d70111239b706d6d282 for build container... Running on runner--project-0-concurrent-0 via CY1-AL-032... Cloning repository... Cloning into '/builds/project-0'... done. Checking out 31e1cdc6 as refactor... Skipping Git submodules setup $ ping -c 1 zookeper ping: unknown host Running after script... ERROR: Job failed: exit code 1 FATAL: exit code 1 (venv) ➜ bw-kafka git:(refactor) ✗
What I'm do wrong ?