dunglas / dunglas/symfony-docker

`var` can't be shared with the host today, so `var/share` isn't shared either

Open
#892 1 comment 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Dockerfile
Stars
3.2k
Forks
874
Avg merge
1h 55m
Merged PRs (30d)
4

Description

Hello !

I've encountered an "issue" with the current Dockerfile.

There is a `VOLUME /app/var` instruction. As far as I understand, this requires Docker to avoid sharing the `var` folder with the host.

We started working on a project locally and wanted to access the `var/share` from the host to load the SQLite database we are using (performing queries on it). I looks like that because of this instruction, the only way to access this folder is from the container itself or by copying specific files to the host.

I removed the instruction and the `var` folder appeared on the developer host machine so we can retrieve specific files.

Is this instruction really important ? If so why ? Does it needs to be changed because of the introduction of `var/share` folder ?

Thanks !!

Contributor guide

Open the contributing guide

Research direction

Start by reading the Dockerfile's VOLUME /app/var instruction and examining how it affects the var/share path used for SQLite access. Done means determining whether the volume is required and, if its behavior should change, confirming that the expected host access is possible without breaking the container setup.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker, sqlite
Domain
database, devops
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.