mirror of
https://github.com/chubin/cheat.sheets
synced 2024-11-11 01:10:31 +00:00
Merge pull request #131 from MFTabriz/master
add another example to ch-run
This commit is contained in:
commit
2abb75a33f
@ -5,3 +5,9 @@
|
|||||||
# Run the given `echo` command inside a Charliecloud container, using the
|
# Run the given `echo` command inside a Charliecloud container, using the
|
||||||
# unpacked image at '/data/foo'.
|
# unpacked image at '/data/foo'.
|
||||||
ch-run /data/foo -- echo hello
|
ch-run /data/foo -- echo hello
|
||||||
|
|
||||||
|
# Make the Charliecloud container writable `-w` and mount the host's
|
||||||
|
# '/home/user' directory to '/mnt' inside the container using the unpacked
|
||||||
|
# image at '/data/foo'. Run `/mnt/your_exec` inside the container.
|
||||||
|
ch-run -w -b /home/user:/mnt /data/foo -- /mnt/your_exec
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user