0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

docker-composeを使用したJenkinsのセットアップで詰まったところ

Last updated at Posted at 2021-05-27

#はじめに
タイトル通りですが、学習していて詰まったところを記事にしました。
何かお役に立てればうれしいです。

##本題

docker-compose.yml
version: "3"
services:
        master:
                container_name: master
                image: jenkins/jenkins:lts-jdk11
                ports:
                        - 8080:8080
                volumes:
                        - type: bind
                          source: ./jenkins_home
                          target: /var/jenkins_home

上記ymlファイルでdocker-compose upを実行したところ

master    | touch: cannot touch '/var/jenkins_home/copy_reference_file.log': Permission denied
master    | Can not write to /var/jenkins_home/copy_reference_file.log. Wrong volume permissions?
master exited with code 1

というエラーが出た。
調べたところ、原因はマウント用に作成したディレクトリの権限問題っぽい。
なので権限設定を変更する。

sudo chown -R 1000:1000 ./jenkins_home/

で権限設定を変更したら無事Jenkinsを起動することができた。

###参考文献
https://github.com/jenkinsci/docker/issues/493

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?