<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <title>Liferay 7.3 DXP with Docker: permission error</title>
  <link rel="self" href="https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=121038594" />
  <subtitle>Liferay 7.3 DXP with Docker: permission error</subtitle>
  <id>https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=121038594</id>
  <updated>2026-04-06T03:03:15Z</updated>
  <dc:date>2026-04-06T03:03:15Z</dc:date>
  <entry>
    <title>Liferay 7.3 DXP with Docker: permission error</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=121038593" />
    <author>
      <name>Alessandro Candini</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=121038593</id>
    <updated>2021-08-16T20:13:52Z</updated>
    <published>2021-08-12T07:56:04Z</published>
    <summary type="html">&lt;p&gt;Hi everyone, I'm getting the following error running a Liferay 7.3
  DXP with Docker:&lt;/p&gt;
&lt;pre&gt;
&lt;code&gt;cp: can't create '/mnt/liferay/deploy/trial-dxp-license-1624926383000.xml': Permission denied&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Because the temporary license is not deployed correctly, at the end
  of Liferay startup, at http://localhost:8080 I get the &amp;quot;missing
  license page&amp;quot;, and not the Liferay Home as expected.&lt;/p&gt;
&lt;p&gt; Here's my steps:&lt;/p&gt;
&lt;ul&gt;
  &lt;li&gt;I've used the latest version available of blade
    (4.0.9.202107011607) to create a workspace:  &lt;pre&gt;
&lt;code&gt;blade init -v dxp-7.3-sp1 --product dxp lfr-wp&lt;/code&gt;&lt;/pre&gt;&lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;version dxp-7.3-sp1 is the latest provided by blade, but we've
      already got a 7.3.10-dxp-2 on &lt;a
        href="https://hub.docker.com/layers/liferay/dxp/7.3.10-dxp-2/images/sha256-4b0c975c21cec8811c17c4bd116419056fec8042595853deaabd1d65fc04f701?context=explore"&gt;Docker
      Hub&lt;/a&gt;, so I've configured the following property inside
      &lt;strong&gt;gradle-local.properties&lt;/strong&gt; to get the latest docker image:&lt;/p&gt;
    &lt;pre&gt;
&lt;code&gt;liferay.workspace.docker.image.liferay=liferay/dxp:7.3.10-dxp-2&lt;/code&gt;&lt;/pre&gt;&lt;/li&gt;
  &lt;li&gt;next, I pulled the image, started the container and visualized
    logs, from wich I get the error reported above:&lt;br /&gt;     &lt;pre&gt;
&lt;code&gt;blade gw pullDockerImage &amp;amp;&amp;amp; blade gw startDockerContainer &amp;amp;&amp;amp; blade gw logsDockerContainer&lt;/code&gt;&lt;/pre&gt;&lt;/li&gt;&lt;/ul&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;Maybe this issue is due to the fact that inside the container,
  permission for the &lt;strong&gt;/mnt/liferay/deploy&lt;/strong&gt; directory are
  not for liferay user:&lt;/p&gt;
&lt;pre&gt;
&lt;code&gt;docker exec -it lfr-wp-liferay bash

liferay@4ea428acd362 /opt/liferay 
$ ls -l /mnt/liferay/
total 12
drwxr-xr-x    2 45141307 45141322      4096 Aug 12 07:26 deploy
drwxr-xr-x    2 liferay  liferay       4096 Aug 12 07:26 patching
drwxr-xr-x    2 liferay  liferay       4096 Aug 12 07:26 scripts&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;As a workaround, I've added to the &lt;strong&gt;Dockerfile.ext&lt;/strong&gt;
  the following line, in order to perform the license deploy as user
  administrator inside the container:&lt;/p&gt;
&lt;pre&gt;
&lt;code&gt;USER root&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;That worked: the licence is deployed, error do not shows up and I get
  the correct Liferay Home Page at http://localhost:8080, but I do not
  thik this is the correct approach, I would like to avoid using the
  root user.&lt;/p&gt;
&lt;p&gt;Furthermore, I've created deploy and scripts directories at the top
  level of my liferay workspace, but unlike what is said in the
  documentation, that directories are not mapped to /mnt/lifery/deploy
  and /mnt/liferay/scripts.&lt;/p&gt;
&lt;p&gt;Nothing happens if I put something inside my deploy host folder and a
  little bash script I put inside scripts is not copied inside the
  container at startup, nor launched at any step of container boot.&lt;/p&gt;
&lt;p&gt;Any suggestions? Thank you!&lt;/p&gt;</summary>
    <dc:creator>Alessandro Candini</dc:creator>
    <dc:date>2021-08-12T07:56:04Z</dc:date>
  </entry>
</feed>
