Docker
Rupavathi SDocker - primary use - isolation
SLURM - Resource allocation
A program on host can access the program on guest
A program on guest cannot access the program on host
How to access files in container?
- Get into the guest. Take the files
- host should give command to place files in host by the guest - Volume mounting
Inside the container - A full fledged OS will be there
Docker is a software that facilitates the above things
No python - host OS
python 3 - Guest OS
We can still call the guest OS python code to run on host OS
The vice versa is not possible. But by volume mounting, you can do the vice versa (like copying the python directories)
key strokes
You cant write into guest container
Guest -> node app.js
- machine on
- Login screen skip
- No desktop
- Terminal - execute node app.js
If app.js is running, the container runs. If app.js stops, container stops.
Work around - wait the program for 1000 secs if you want to wait in container
cd cat ls sh - binary
the files created by running app.js is saved in container. To use in host, plug pendrive