We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
步骤说明:
mkdir ~/jenkins && cd ~/jenkins cat << EOF > docker-compose.yaml version: '3' services: jenkins: image: jenkins/jenkins:jdk11 restart: unless-stopped ports: - "127.0.0.1:30000:8080" volumes: - "/home/ubuntu/jenkins/jenkins-data:/var/jenkins_home" EOF
# 以前我是用独立用户运行jenkins,现在 docker 不准备复用该用户了。 # 又因为 Jenkins 镜像指定了默认的 UID, GID 为 1000,对应我宿主机的用户则为 ubuntu。 sudo cp -r /home/jenkins/.jenkins ~/jenkins/jenkins-data sudo chown -R ubuntu:ubuntu ~/jenkins/jenkins-data
sudo docker-compose up -d
The text was updated successfully, but these errors were encountered:
No branches or pull requests
步骤说明:
sudo docker-compose up -d
The text was updated successfully, but these errors were encountered: