This is likely something completely to do with Docker, and not the IA docker image, so I posted this on their forums, but I am posting it here as well incase someone here has experienced this! (
I primarily do my development in networks setup by compose files, where I map a specific local folder into a specific folder on my container. I have noticed recently that I am having an issue consistently where after a short period of time my container will stop receiving the changes for files located inside the mount.
Here is how my compose file is setup:
version: "3" services: frontend: image: inductiveautomation/ignition:8.1.16 container_name: frontend ports: - "80:8088" volumes: - project_data:/usr/local/bin/ignition/data volumes: project_data: driver: local driver_opts: type: none device: "myProjectPath/Data" o: bind
At first everything looks fine and works, however after a while I can make changes in VS Code on my Mac directly:
(Note the extra folders)
├── views │ ├── Gemba Boards │ │ ├── Blends │ │ ├── Embedded Views │ │ ├── Filter │ ├── General
That do not make their way into the container if I actually attach to it to look at its file contents
├── views │ ├── Gemba Boards │ │ ├── Blends │ ├── General
Potentially relevant note is that I am also using git, and this typically happens when I am switching between git branches. So it may be something to do with the large amount of files being changed at once?
Restarting the container does not resolve this issue, however completely restarting Docker Desktop does (Which I am pretty sure is also restarting the engine, so I am not sure which thing is fixing this.)
MacOS Version: Monterey 12.4
Docker Desktop Version: 4.8.1 (78998)
Docker Engine Version: 20.10.14
Ignition Version: inductiveautomation/igntion:8.1.16
Any ideas are greatly appreciated!
Docker forum post link for reference: Device Bind Mount Disconnecting from Container Directory - Docker Desktop for Mac - Docker Community Forums
Docker Issue Link for reference: Device Bind Mount Disconnecting from Container Directory · Issue #6317 · docker/for-mac · GitHub