You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Can you output the content of the file running in the container, and check if the file inside the container is updated?
You can do this using something like:
docker exec -it 3d6e55c660a0 cat /script
Sometimes file mounts fail to update in docker containers because some editors use a separate temporary file while editing, then copy it into place once you complete, and Docker won't update the mounted file in the container in cases like this. This is a known issue with Docker and won't be fixed.
One workaround if you want to use a host mount is to mount a directory instead of the file directly. You could do that using something like:
Oh I see.
I use vim which effectively changes the inode because of writing to a separate file and replacing the original, which doesn't reflect in Docker.
Your solution with mounting the whole folder+env var worked - thank you!
Using webify in docker, I'm seeing cached values for simple text:
script.sh
:docker run -d --rm -p 8080:80 -v $(realpath script.sh):/script beefsack/webify
If I change
foo
tobar
,curl http://localhost:8080
still displays the old value.This only occurs in Docker, if I run webify on baremetal, the updated value
bar
is displayed.The text was updated successfully, but these errors were encountered: