Handling CI with GitLab and Azure Kubernetes

故事扮演 提交于 2019-12-11 10:04:32

问题


Building a docker image using Docker in Docker is not working.

before_script:

  - apt-get update && apt-get install -y apt-transport-https
  - apk add --update curl && rm -rf /var/cache/apk/
  - curl -LO https://storage.googleapis.com/kubernetes-release/release/$(curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt)/bin/linux/amd64/kubectl  
  - chmod +x ./kubectl
  - mv ./kubectl /usr/local/bin/kubectl
build:
  stage: build
  image: docker:dind
  services:
    - docker:dind
  variables:
    DOCKER_DRIVER: overlay2
    DOCKER_HOST: tcp://127.0.0.1:2376    
  script:
    - kubectl version
    - docker info

Getting: Client sent an HTTP request to an HTTPS server

来源:https://stackoverflow.com/questions/57246095/handling-ci-with-gitlab-and-azure-kubernetes

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!