Skip to content

Instantly share code, notes, and snippets.

@shemul
Created July 12, 2020 16:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shemul/f647ba0b4277ec718fe5845fbff55c77 to your computer and use it in GitHub Desktop.
Save shemul/f647ba0b4277ec718fe5845fbff55c77 to your computer and use it in GitHub Desktop.
gitlab-ci docker in docker host alias
image: shemul/gitlab-ci
variables:
DOCKER_TLS_CERTDIR: ""
stages:
- test
services:
- name: docker:dind
alias: dlocal
test:
stage: test
script:
- docker run --name nginx -d -p 8080:80 nginx:latest
- curl "http://dlocal:8080"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment