Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
1.16.0, 1.17.0
-
None
-
None
Description
Hello!
I have CD pipeline:
1) build docker image with Nifi flow
FROM apache/nifi:1.16.0
USER nifi
COPY --chown=nifi ./build_env/images/nifi/drivers/ /opt/nifi/nifi-current/lib/
COPY --chown=nifi ./build_env/images/nifi/project/conf/ /opt/nifi/nifi-current/conf/
CMD ["../scripts/start.sh"]
2) deploy to registry
3) run docker container FROM registry's image
VOLUME declaration prevents getting changes from image (container used data in /opt/nifi/nifi-current/conf/ from local volume instead of registry).
Deleting container and starting new get changes to Nifi's flow, but system has 7 garbage volumes every deploy.
Maybe creating VOLUME in Dockerfile is atavism now?
If user removes contaner, docker creates new VOLUME and data will be lost.
VOLUME instructions created in NIFI-5438
Attachments
Issue Links
- is caused by
-
NIFI-5438 Declare volumes for the NiFi docker container for persistence by default
- Resolved
- links to