Skip to content
Branch: master
Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
..
Failed to load latest commit information.
site
README.md
run.bat

README.md

6: Host OS (Windows) + Container (Linux)

Host OS App run as
native app
App run as
Linux Container
App run as
Windows Container

App run in
K8s (Linux Container)
Linux 1 4 N/A 8
Mac 2 5 N/A
Windows 3 ★ 6 ★ (LCOW) 7

Type run.bat to track the changes of this directory.

.
├── run.bat
└── site
    ├── css
    │   └── main.css
    ├── index.html
    └── js
        └── main.js

3 directories, 4 files

Test from the host (outside)

Change something under the current directory from the host.

NOTE: it should not work.

When there's a mismatch between host OS and container, fswatch may not work well. Take Docker Desktop for Windows for example:

Inotify on shared drives does not work

Currently, inotify does not work on Docker Desktop for Windows. This becomes evident, for example, when an application needs to read/write to a container across a mounted drive. Instead of relying on filesystem inotify, we recommend using polling features for your framework or programming language.

Test from the container (inside)

Dig into the container, and change something under the /mnt directory:

% docker exec -it test6 sh
You can’t perform that action at this time.