Skip to content

Instantly share code, notes, and snippets.

@vkuznecovas
Created December 12, 2017 11:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vkuznecovas/d2dc013b3f35d75d758083804f3c867a to your computer and use it in GitHub Desktop.
Save vkuznecovas/d2dc013b3f35d75d758083804f3c867a to your computer and use it in GitHub Desktop.
Interesting docker behaviour
FROM mysql:5.7.20
WORKDIR /var/lib/mysql
# after this run, the a.txt is seen in /var/lib/mysql
RUN touch a.txt && ls -la
# after this run, the a.txt seems to be gone
RUN ls -la
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment