Jenkins Docker 部署实践
docker-compose.yml
|
|
run Create and start containers
|
|
强制重新构建容器
start
|
|
stop
|
|
restart
|
|
dcoker 常用命令
|
|
jenkins plugins
- Docker
- Docker Pipeline
- Localization: Chinese (Simplified)
- NodeJS Plugin
- Simple Theme Plugin
QA
- WorkflowScript: 3: Invalid agent type “docker” specified. Must be one of [any, label, none] @ line 3, column 9.
You have to install 2 plugins: Docker plugin and Docker Pipeline. Hope that helps.
/var/jenkins_home/workspace/htzxh5-test@tmp/durable-8063fe32/script.sh: 1: /var/jenkins_home/workspace/htzxh5-test@tmp/durable-8063fe32/script.sh: docker: Permission denied
/bin/sh: 12: sudo: not found
|
|
Jenkins home page -> Manage Jenkins -> Script Console.
- docker in docker
The simple way to run Docker-in-Docker for CI
- windows cannot touch ‘/var/jenkins_home/copy_reference_file.log’: Permission denied
The easy fix it to use the -u parameter. Keep in mind this will run as a root user (uid=0)
- install huawei cloud OBS
|
|