Skip to content
This repository was archived by the owner on Apr 26, 2024. It is now read-only.

Commit 5598556

Browse files
authored
Docker: remove VOLUME directive (#11997)
The driver for this is to stop Complement complaining about it, but as far as I can tell it was pointless and needed to go away anyway. I'm a bit unclear about what exactly VOLUME does, but I think what it means is that, if you don't override it with an explicit -v argument, then docker run will create a temporary volume, and copy things into it. The temporary volume is then deleted when the container finishes. That only sounds useful if your image has something to copy into it (otherwise you may as well just use the default root filesystem), and our image notably doesn't copy anything into /data. So... this wasn't doing anything, except annoying Complement?
1 parent e44f91d commit 5598556

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

changelog.d/11997.docker

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
The docker image no longer automatically creates a temporary volume at `/data`. This is not expected to affect normal usage.

docker/Dockerfile

-2
Original file line numberDiff line numberDiff line change
@@ -98,8 +98,6 @@ COPY --from=builder /install /usr/local
9898
COPY ./docker/start.py /start.py
9999
COPY ./docker/conf /conf
100100

101-
VOLUME ["/data"]
102-
103101
EXPOSE 8008/tcp 8009/tcp 8448/tcp
104102

105103
ENTRYPOINT ["/start.py"]

0 commit comments

Comments
 (0)