Editing
Tutorials:container which trains MNIST using Tensorflow
(section)
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
== Remark: persistent storage in the container == A container brings its own temporary file system, everything which is written to it will by default not impact the host. After the container terminates, all data which was stored on this temporary filesystem is lost. To write to persistent storage from inside the container which survives container destruction, you have to mount a host filesystem. This can be done in the docker-compose.yml like this (add to the "application" container section): <syntaxhighlight lang="bash"> </syntaxhighlight> Everything which is written inside the container to "application/output" will now end up the in the "output" directory on the host (paths are relative to the docker compose config). Vice versa, whatever was/is put into the host directory is now available inside the container. You can also mount read-only if you just want to import data from the host: <syntaxhighlight lang="bash"> </syntaxhighlight> Note that this mechanism is only explained for reference and your own testing, it will not work on the cluster. See the detailed tutorial on Persistent data on the cluster for how it works here.
Summary:
Please note that all contributions to Collective Computational Unit may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
CCU:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Navigation menu
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
Namespaces
Page
Discussion
English
Views
Read
Edit
View history
More
Search
Navigation
Collective Computational Unit
Main page
Projects
Tutorials
GPU Cluster
Core Facilitys
Mediawiki
Recent changes
Random page
Help
Tools
What links here
Related changes
Page information