legacy-knowledge-base
公開されました Sep. 10, 2025

Liferay docker container with volume mountが正常に起動しない。

written-by

Anishq Sharma

How To articles are not official guidelines or officially supported documentation. They are community-contributed content and may not always reflect the latest updates to Liferay DXP. We welcome your feedback to improve How To articles!

While we make every effort to ensure this Knowledge Base is accurate, it may not always reflect the most recent updates or official guidelines.We appreciate your understanding and encourage you to reach out with any feedback or concerns.

legacy-article

learn-legacy-article-disclaimer-text

問題

  • ボリュームをマウントしたLiferayのDockerコンテナが正しく起動せず、ログに以下のようなエントリが表示される:
    ls: cannot open directory .: Permission denied

Environment

  • Liferay DXP 7.1
  • Liferay DXP 7.2
  • Liferay DXP 7.3
  • Liferay DXP 7.4

解決策

  • この問題はOSに依存し、通常fedoraのような一部のLinuxディストロで発生します。
  • この問題を解決するには、ボリュームマウントの構文の後にz(小文字)を追加する必要があります(以下のように):
    $DOCKER_HOME:/etc/liferay/mount:z
  • z オプションは、バインドマウントコンテンツが複数のコンテナ間で共有されることを示します。
did-this-article-resolve-your-issue

legacy-knowledge-base