TVerRec
TVerRec copied to clipboard
dockerコンテナでICU librariesが入っていません
最近のdockerコンテナで下記のエラーが出ます。
[+] Running 1/1
✔ Container tverrec Created 0.0s
Attaching to tverrec
tverrec | Process terminated. Couldn't find a valid ICU package installed on the system. Please install libicu (or icu-libs) using your package manager and try again. Alternatively you can set the configuration flag System.Globalization.Invariant to true if you want to run with no globalization support. Please see https://aka.ms/dotnet-missing-libicu for more information.
tverrec | at System.Environment.FailFast(System.Runtime.CompilerServices.StackCrawlMarkHandle, System.String, System.Runtime.CompilerServices.ObjectHandleOnStack, System.String)
tverrec | at System.Environment.FailFast(System.Threading.StackCrawlMark ByRef, System.String, System.Exception, System.String)
tverrec | at System.Environment.FailFast(System.String)
tverrec | at System.Globalization.GlobalizationMode+Settings..cctor()
tverrec | at System.Globalization.CultureData.CreateCultureWithInvariantData()
tverrec | at System.Globalization.CultureData.get_Invariant()
tverrec | at System.Globalization.CultureInfo..cctor()
tverrec | at System.Globalization.CultureInfo.get_CurrentUICulture()
tverrec | at Microsoft.PowerShell.UnmanagedPSEntry.Start(System.String[], Int32)
tverrec | at Microsoft.PowerShell.ManagedPSEntry.Main(System.String[])
tverrec | start_tverrec.sh: line 17: 8 Aborted (core dumped) pwsh -NoProfile "../src/loop.ps1"
tverrec | Completed ...
tverrec exited with code 0 (restarting)
このようなcompose.ymlファイルを使っているます
services:
tverrec:
container_name: tverrec
image: dongaba/tverrec:latest
hostname: "tverrec"
restart: unless-stopped
tty: true
stdin_open: true
network_mode: "host"
user: "root"
build:
context: .
dockerfile: ./Dockerfile
environment:
POWERSHELL_TELEMETRY_OPTOUT: 1
COMPOSE_PROJECT_NAME: tverrec
tmpfs:
- /mnt/Temp
volumes:
- type: bind
source: ./data/work
target: /mnt/Work
- type: bind
source: /home/myname/files/media/tv
target: /mnt/Save
- type: bind
source: ./data/container-data
target: /app/TVerRec/container-data
私も同じ問題に遭遇しましたがDockerfileのapt-get installにlibicu-devとlibicu76を追加したら起動できました。
ご参考までに。
イメージのアップデートをしていただけるまでとりあえずこれで凌げます
# tverrecのベースイメージを指定
FROM dongaba/tverrec
# rootユーザーに切り替えてパッケージをインストール
USER root
RUN apt-get update && apt-get install -y \
libicu-dev \
libicu76 \
&& rm -rf /var/lib/apt/lists/*
# ubuntu ユーザーに戻す
USER ubuntu