<?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>question Which directories should be mounted in docker to persist flows? in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Which-directories-should-be-mounted-in-docker-to-persist/m-p/373180#M241513</link>
    <description>&lt;P&gt;After having lost all my test work I decided it is time to investigate how to persist data in NiFi when running it in a docker image. I use the official image. This is what I managed to gather so far:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="java"&gt;services:
  nifi:
    container_name: nifi
    image: apache/nifi:latest
    ports:
      - "8443:8443"
      - "16543:16543"
    volumes:
      - "C:/nifi/data:/data"
      - "C:/nifi/state:/opt/nifi/nifi-current/state"
      - "C:/nifi/database:/opt/nifi/nifi-current/database_repository"
      - "C:/nifi/flowfile:/opt/nifi/nifi-current/flowfile_repository"
      - "C:/nifi/content:/opt/nifi/nifi-current/content_repository"
      - "C:/nifi/provenance:/opt/nifi/nifi-current/provenance_repository"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When stopping/staring the container everything is OK (login credentials and content)&lt;/P&gt;&lt;P&gt;When removing the container, the credentials are persisted but the content is gone.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I presume that there is yet another directory that I should mount in order to have the data saved there. Which one is it?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 24 Jun 2023 10:28:42 GMT</pubDate>
    <dc:creator>Wpq</dc:creator>
    <dc:date>2023-06-24T10:28:42Z</dc:date>
    <item>
      <title>Which directories should be mounted in docker to persist flows?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Which-directories-should-be-mounted-in-docker-to-persist/m-p/373180#M241513</link>
      <description>&lt;P&gt;After having lost all my test work I decided it is time to investigate how to persist data in NiFi when running it in a docker image. I use the official image. This is what I managed to gather so far:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="java"&gt;services:
  nifi:
    container_name: nifi
    image: apache/nifi:latest
    ports:
      - "8443:8443"
      - "16543:16543"
    volumes:
      - "C:/nifi/data:/data"
      - "C:/nifi/state:/opt/nifi/nifi-current/state"
      - "C:/nifi/database:/opt/nifi/nifi-current/database_repository"
      - "C:/nifi/flowfile:/opt/nifi/nifi-current/flowfile_repository"
      - "C:/nifi/content:/opt/nifi/nifi-current/content_repository"
      - "C:/nifi/provenance:/opt/nifi/nifi-current/provenance_repository"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When stopping/staring the container everything is OK (login credentials and content)&lt;/P&gt;&lt;P&gt;When removing the container, the credentials are persisted but the content is gone.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I presume that there is yet another directory that I should mount in order to have the data saved there. Which one is it?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 24 Jun 2023 10:28:42 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Which-directories-should-be-mounted-in-docker-to-persist/m-p/373180#M241513</guid>
      <dc:creator>Wpq</dc:creator>
      <dc:date>2023-06-24T10:28:42Z</dc:date>
    </item>
    <item>
      <title>Re: Which directories should be mounted in docker to persist flows?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Which-directories-should-be-mounted-in-docker-to-persist/m-p/382555#M244623</link>
      <description>&lt;P&gt;Flow definitions are saved in the `conf` dir and at least 2 different approaches can be mentioned to backup it: the first by manually `docker cp`its contents and mount them later as a volume at your next run, while the second leveraging the mount bind option of docker to automatically synchronize the `conf` dir contents with your local dir.&lt;/P&gt;</description>
      <pubDate>Mon, 22 Jan 2024 15:21:26 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Which-directories-should-be-mounted-in-docker-to-persist/m-p/382555#M244623</guid>
      <dc:creator>LorenzoMusto</dc:creator>
      <dc:date>2024-01-22T15:21:26Z</dc:date>
    </item>
  </channel>
</rss>

