caching - Docker Error: CSS File in Mapped Volume Fails to Update -
system setup:
- docker version 1.9.1, build a34a1d5
- oracle virtualbox 4.3.34r104062
- image: https://hub.docker.com/r/rc42/flaskserver/
when edit css file in flask server <link rel="stylesheet" href="{{ url_for('static', filename='styles/bootstrap.css') }}">
, following things seem happen:
- the changes not show when reload localhost test page.
- the changes not show when remove/rerun container.
- the changes not show when stop/restart container.
at first, thought might web browser cache problem, not. have tested problem against hard reload, different browsers , manner of browser cache clearing. on top of this, when enter container , examine file, none of changes show in 'cat' or 'grep' call. but, examinations of file on own system show changes have indeed occurred on file.
the way can seem these changes propagate if refactor file name name have not used css file. <link rel="stylesheet" href="{{ url_for('static', filename='styles/bootstrap1.css') }}">
but, if refactor name original name, old version of file once again shows in cat commands , file requests.
problem: virtualbox memory
not know happening, seems caching problem virtualbox. on hunch, "reset" boot2docker image in virtualbox , latest changes made file prior reset propagated.
but, there not appear way adjust virtualbox prevent caching problem occurring. "use host i/o cache" toggle permanently set on in settings > storage image.
perhaps guys @ docker can this. sounds there memory management problem isn't isolated case. similar problem has been documented here performing web app edits through virtualbox. and, doesn't seem useful editing have reset virtualbox every time make style change.
Comments
Post a Comment