YD
Size: a a a
YD
MD
I
.build-template: &build-template
stage: build
image: docker:19.03.1
services:
- docker:19.03.1-dind
before_script:
- export DOCKER_HOST="tcp://localhost:2376"
- export DOCKER_TLS_CERTDIR=""
- docker info
ERROR: Cannot connect to the Docker daemon at tcp://localhost:2376. Is the docker daemon running?
. Делалось по докам: https://docs.gitlab.com/ee/ci/docker/using_docker_build.html#tls-disabledGG
GG
N
GG
GG
.build-template: &build-template
stage: build
image: docker:19.03.1
services:
- docker:19.03.1-dind
before_script:
- export DOCKER_HOST="tcp://localhost:2376"
- export DOCKER_TLS_CERTDIR=""
- docker info
ERROR: Cannot connect to the Docker daemon at tcp://localhost:2376. Is the docker daemon running?
. Делалось по докам: https://docs.gitlab.com/ee/ci/docker/using_docker_build.html#tls-disabledGG
GG
variables:
DOCKER_DRIVER: overlay2
DOCKER_HOST: tcp://localhost:2375
Build Docker Images:
stage: build
image: docker:stable
services:
- name: docker:18.09.6-dind
entrypoint:
- /bin/sh
command:
- -c
- update-ca-certificates && dockerd-entrypoint.sh
tags:
- k8s-testlab
script:
...
GG
I
variables:
DOCKER_DRIVER: overlay2
DOCKER_HOST: tcp://localhost:2375
Build Docker Images:
stage: build
image: docker:stable
services:
- name: docker:18.09.6-dind
entrypoint:
- /bin/sh
command:
- -c
- update-ca-certificates && dockerd-entrypoint.sh
tags:
- k8s-testlab
script:
...
GG
GG
GG