<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How to copy the docker container folders to local in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/how-to-copy-the-docker-container-folders-to-local/m-p/83229#M25470</link>
    <description>&lt;P&gt;&lt;FONT&gt;As&amp;nbsp; said you can try to map /usr/local/tomcat folder inside the container to a directory in the host ,like following.&lt;BR /&gt;Then you an do whatever you want&lt;BR /&gt;volumes:&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; - /your host folder:/usr/local/tomcat&lt;BR /&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
    <pubDate>Sat, 26 Sep 2020 15:36:20 GMT</pubDate>
    <dc:creator>kaynezhang</dc:creator>
    <dc:date>2020-09-26T15:36:20Z</dc:date>
    <item>
      <title>How to copy the docker container folders to local</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-copy-the-docker-container-folders-to-local/m-p/83226#M25467</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am trying to copy the alfresco related folders to local from the docker container(usr/local/tomcat ).&lt;/P&gt;&lt;P&gt;Is there a better way to do that?&lt;/P&gt;</description>
      <pubDate>Thu, 24 Sep 2020 20:21:00 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-copy-the-docker-container-folders-to-local/m-p/83226#M25467</guid>
      <dc:creator>arjunm1989</dc:creator>
      <dc:date>2020-09-24T20:21:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to copy the docker container folders to local</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-copy-the-docker-container-folders-to-local/m-p/83227#M25468</link>
      <description>&lt;P&gt;If i understand correctly that you want to keep the copy of folders on host, you can use bind mounts to do that. It will automatically create specified folders and keep the folders up to date with containers.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;U&gt;Here is an example of docker-compose services, read my comments in highlighted part:&lt;/U&gt;&lt;/P&gt;
&lt;PRE&gt;version: '2'
services:
  acs62-aio-demo-project-share:
    image: alfresco-share-acs62-aio-demo-project:development
    mem_limit: 1g
    .....&lt;BR /&gt;    .......
   &lt;FONT color="#FF0000"&gt;&lt;STRONG&gt; volumes:
&lt;/STRONG&gt;          #Bind mount SHORT SYNTAX - [SOURCE:]TARGET[:MODE]
          #SOURCE can be a named volume or a (relative or absolute) path on the host system. 
          #TARGET is an absolute path in the container where the volume is mounted. 
          #MODE is a mount option which can be read-only (ro) or read-write (rw) (default).&lt;STRONG&gt;
          - ../../../logs/share:/usr/local/tomcat/logs&lt;/STRONG&gt;&lt;/FONT&gt;
          
  acs62-aio-demo-project-acs:
    image: alfresco-content-services-acs62-aio-demo-project:development
    mem_limit: 1700m
   ...&lt;BR /&gt;   .....
    &lt;FONT color="#FF0000"&gt;volumes:
          #Bind mount SHORT SYNTAX - [SOURCE:]TARGET[:MODE]
          #SOURCE can be a named volume or a (relative or absolute) path on the host system. 
          #TARGET is an absolute path in the container where the volume is mounted. 
          #MODE is a mount option which can be read-only (ro) or read-write (rw) (default).
        &lt;STRONG&gt;  - ../../../data/alfresco/alf_data:/usr/local/tomcat/alf_data
          - ../../../logs/alfresco:/usr/local/tomcat/logs&lt;/STRONG&gt;&lt;/FONT&gt;
   &lt;BR /&gt;&lt;BR /&gt;......&lt;BR /&gt;......&lt;/PRE&gt;</description>
      <pubDate>Thu, 24 Sep 2020 21:01:49 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-copy-the-docker-container-folders-to-local/m-p/83227#M25468</guid>
      <dc:creator>abhinavmishra14</dc:creator>
      <dc:date>2020-09-24T21:01:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to copy the docker container folders to local</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-copy-the-docker-container-folders-to-local/m-p/83228#M25469</link>
      <description>&lt;P&gt;Thank you Abhinav. If someone already ran the images is there is any option to copy the entire alfresco folder structure to our local system .&lt;/P&gt;&lt;P&gt;docker cp alfresco_1:/usr/local/tomcat &amp;lt;destination&amp;gt;&lt;/P&gt;&lt;P&gt;the above command copy only&amp;nbsp; the amps folders and not the webapps or shared folders.&lt;/P&gt;</description>
      <pubDate>Fri, 25 Sep 2020 13:31:21 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-copy-the-docker-container-folders-to-local/m-p/83228#M25469</guid>
      <dc:creator>arjunm1989</dc:creator>
      <dc:date>2020-09-25T13:31:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to copy the docker container folders to local</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-copy-the-docker-container-folders-to-local/m-p/83229#M25470</link>
      <description>&lt;P&gt;&lt;FONT&gt;As&amp;nbsp; said you can try to map /usr/local/tomcat folder inside the container to a directory in the host ,like following.&lt;BR /&gt;Then you an do whatever you want&lt;BR /&gt;volumes:&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; - /your host folder:/usr/local/tomcat&lt;BR /&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 26 Sep 2020 15:36:20 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-copy-the-docker-container-folders-to-local/m-p/83229#M25470</guid>
      <dc:creator>kaynezhang</dc:creator>
      <dc:date>2020-09-26T15:36:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to copy the docker container folders to local</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-copy-the-docker-container-folders-to-local/m-p/83230#M25471</link>
      <description>&lt;P&gt;yes but note that, if you are using windows host, tomcat startup script may fail to start as it will try to execute ".sh" script. I have not tried but most likely error is expected on windos host.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 17:56:48 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-copy-the-docker-container-folders-to-local/m-p/83230#M25471</guid>
      <dc:creator>abhinavmishra14</dc:creator>
      <dc:date>2020-09-28T17:56:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to copy the docker container folders to local</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-copy-the-docker-container-folders-to-local/m-p/83231#M25472</link>
      <description>&lt;P&gt;My thorts it is some permisions or storage problem.&lt;/P&gt;&lt;PRE&gt;sudo docker cp alfresco_1:/usr/local/tomcat &amp;lt;local_folder&amp;gt;&lt;/PRE&gt;&lt;P&gt;must copy all folders and files from '/usr/local/tomcat' including mapped persistant volume alf_data.&lt;/P&gt;&lt;P&gt;Go to your containre and check the folders you try to copy:&lt;/P&gt;&lt;PRE&gt;sudo docker exec -it alfresco_1 bash&lt;BR /&gt;cd /usr/local/tomcat&lt;BR /&gt;ls -la&lt;/PRE&gt;&lt;P&gt;Try copy folder by folder&lt;/P&gt;&lt;PRE&gt;sudo docker cp alfresco_1:/usr/local/tomcat/shared &amp;lt;local_folder/shared&amp;gt;
sudo docker cp alfresco_1:/usr/local/tomcat/webapps &amp;lt;local_folder/webapps&amp;gt;&lt;/PRE&gt;&lt;P&gt;and get some errors.&lt;/P&gt;&lt;P&gt;&lt;EM&gt;p.s. docker is natural linux. dont use wondows.&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 20:16:12 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-copy-the-docker-container-folders-to-local/m-p/83231#M25472</guid>
      <dc:creator>fedorow</dc:creator>
      <dc:date>2020-09-28T20:16:12Z</dc:date>
    </item>
  </channel>
</rss>

