我有一个Jenkins作为docker容器运行,现在我想使用管道构建一个Docker镜像,但Jenkins容器总是告诉Docker找不到.
[simple-tdd-pipeline] Running shell script
+ docker build -t simple-tdd .
/var/jenkins_home/workspace/simple-tdd-pipeline@tmp/durable-
ebc35179/script.sh: 2: /var/jenkins_home/workspace/simple-tdd-
pipeline@tmp/durable-ebc35179/script.sh: docker: not found
Run Code Online (Sandbox Code Playgroud)
以下是我运行Jenkins图像的方法:
docker run --name myjenkins -p 8080:8080 -p 50000:50000 -v
/var/jenkins_home -v /var/run/docker.sock:/var/run/docker.sock
jenkins
Run Code Online (Sandbox Code Playgroud)
而Jenkins图像的DockerFile是:https: //github.com/jenkinsci/docker/blob/9f29488b77c2005bbbc5c936d47e697689f8ef6e/Dockerfile
我已将我的 Node JS 应用程序部署到 Google Cloud App Engine,并且我可以成功地为我的应用程序添加我的自定义域。
假设我的自定义域是example.com。
现在我可以通过 example.com 和www.example.com浏览我的应用程序,它按预期工作。但是我发现我仍然可以通过默认域浏览我的应用程序。 https://[project-id].appspot.com
我想禁用默认域,可以这样做吗?