Additional Docker Volume Created?

I’m using Caddy 2 with docker.

I notice that an additional anonymous docker volume created after docker-compose up.

Here is my `docker-compose.yml’:

version: "3.7"
services: 
    caddy:
        image: caddy/caddy
        container_name: caddy
        restart: always
        ports: 
            - "80:80"
            - "443:443"

        volumes: 
            - ./Caddyfile:/etc/caddy/Caddyfile
            - ./cert:/cert
            - caddydata:/data
            - caddyconfig:/config/caddy
        networks:
            - net
            
volumes: 
    caddydata:
    caddyconfig:

networks:
    net:

I ran volume inspect on the anonymous :

{

    "CreatedAt": "2020-04-08T03:53:48Z",
    "Driver": "local",
    "Labels": null,
    "Mountpoint": "/var/lib/docker/volumes/578a02f7d201101a561d24528f608eb3b86dd84041c2b9ec56fd28c89f92b612/_data",
    "Name": "578a02f7d201101a561d24528f608eb3b86dd84041c2b9ec56fd28c89f92b612",
    "Options": null,
    "Scope": "local"
} 

What is that? Is it from Caddy?

Might be for /config, since you’ve got /data but you’re only mounting /config/caddy?

1 Like

Got it. Thanks

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.