0

あなたの助けが必要です。私のタスクは、現在の redmine をドッキングすることです。ほぼ2週間、私はこのタスクに取り組んでいます。public フォルダーをホスト redmine から docker コンテナー redmine/public にコピーしました すべてのプラグインをコピーして正常にインストールしましたが、問題は画像、テーマの背景画像、wiki 画像が表示されません。

私のdocker redmineはイメージへのパスを見つけられないと思います。

画像を表示する方法を知っている人はいますか?

これまでに行った手順を説明します。

docker network create --driver bridge redmine_network
docker volume create postgres-data
docker volume create redmine-data

docker container run -d                         \ 
      --name postgres                           \ 
      --network redmine_network                 \ 
      -v postgres-data:/var/lib/postgresql/data \ 
      --restart always                          \ 
      -e POSTGRES_PASSWORD='password'             \ 
      -e POSTGRES_DB='redmine'                  \ 
      postgres:latest



docker container run -d                         \ 
    --name redmine                              \ 
    --network redmine_network                   \ 
    -p 80:3000                                  \ 
    --restart always                            \ 
    -v redmine-data:/usr/src/redmine/files      \ 
    -e REDMINE_DB_POSTGRES='postgres'           \ 
    -e REDMINE_DB_DATABASE='redmine'            \ 
    -e REDMINE_DB_PASSWORD='password'           \ 
    redmine:latest

コンテナー内に、プラグイン用のパッケージと gem をインストールします

docker exec -it redmine bash

apt update 
apt install build-essential libpq-dev pkg-config libmagickwand-dev ruby ruby-dev
bundle install --no-deployment
gem install will_paginate 
gem install jenkins_api_client
gem install activesupport -v 4.2.8
gem install  haml-rails -v 1.0
gem install deface -v 1.0.2
gem install brakeman -v 4.8.0
bundle updates

docker redmine ログファイル

Resolving dependencies...
The Gemfile's dependencies are satisfied
[2020-03-17 16:31:41] INFO  WEBrick 1.3.1
[2020-03-17 16:31:41] INFO  ruby 2.4.4 (2018-03-28) [x86_64-linux]
[2020-03-17 16:31:41] INFO  WEBrick::HTTPServer#start: pid=1 port=3000
[2020-03-17 16:32:03] ERROR Errno::ECONNRESET: Connection reset by peer @ io_fillbuf - fd:16 
    /usr/local/lib/ruby/2.4.0/webrick/httpserver.rb:82:in `eof?'
    /usr/local/lib/ruby/2.4.0/webrick/httpserver.rb:82:in `run'
    /usr/local/lib/ruby/2.4.0/webrick/server.rb:308:in `block in start_thread'
[2020-03-17 16:32:03] ERROR Errno::ECONNRESET: Connection reset by peer @ io_fillbuf - fd:14 
    /usr/local/lib/ruby/2.4.0/webrick/httpserver.rb:82:in `eof?'
    /usr/local/lib/ruby/2.4.0/webrick/httpserver.rb:82:in `run'
    /usr/local/lib/ruby/2.4.0/webrick/server.rb:308:in `block in start_thread'
[2020-03-17 16:32:08] ERROR Errno::ECONNRESET: Connection reset by peer @ io_fillbuf - fd:19 
    /usr/local/lib/ruby/2.4.0/webrick/httpserver.rb:82:in `eof?'
    /usr/local/lib/ruby/2.4.0/webrick/httpserver.rb:82:in `run'
    /usr/local/lib/ruby/2.4.0/webrick/server.rb:308:in `block in start_thread'
[2020-03-17 16:32:08] ERROR Errno::ECONNRESET: Connection reset by peer @ io_fillbuf - fd:13 
    /usr/local/lib/ruby/2.4.0/webrick/httpserver.rb:82:in `eof?'
    /usr/local/lib/ruby/2.4.0/webrick/httpserver.rb:82:in `run'
    /usr/local/lib/ruby/2.4.0/webrick/server.rb:308:in `block in start_thread'
[2020-03-17 16:32:08] ERROR Errno::ECONNRESET: Connection reset by peer @ io_fillbuf - fd:18 
    /usr/local/lib/ruby/2.4.0/webrick/httpserver.rb:82:in `eof?'
    /usr/local/lib/ruby/2.4.0/webrick/httpserver.rb:82:in `run'
    /usr/local/lib/ruby/2.4.0/webrick/server.rb:308:in `block in start_thread'
[2020-03-17 16:32:09] ERROR Errno::ECONNRESET: Connection reset by peer @ io_fillbuf - fd:16 
    /usr/local/lib/ruby/2.4.0/webrick/httpserver.rb:82:in `eof?'
    /usr/local/lib/ruby/2.4.0/webrick/httpserver.rb:82:in `run'
    /usr/local/lib/ruby/2.4.0/webrick/server.rb:308:in `block in start_thread'
[2020-03-17 16:32:09] ERROR Errno::ECONNRESET: Connection reset by peer @ io_fillbuf - fd:14 
    /usr/local/lib/ruby/2.4.0/webrick/httpserver.rb:82:in `eof?'
    /usr/local/lib/ruby/2.4.0/webrick/httpserver.rb:82:in `run'
    /usr/local/lib/ruby/2.4.0/webrick/server.rb:308:in `block in start_thread'

誰でもこのエラーをクリアする方法を説明できます..お願いします

4

1 に答える 1