-
Notifications
You must be signed in to change notification settings - Fork 1
Home
Daniel Nieto edited this page May 5, 2020
·
10 revisions
- Build image from dockerfile:
$ docker build -t your_tag:your_version -< dockerfile
- Run image interactively:
$ docker run -it --name handle_name your_tag:your_version
- Transferring files between host and container:
$ docker cp foo.txt mycontainer:/foo.txt
$ docker cp mycontainer:/foo.txt foo.txt
- Tar image for sharing without registry:
$ docker save my_image > my_image.tar
- Build image for later interactive use (enabling write permissions)
$ singularity build --fakeroot --sandbox <your_image_name> <your_singularity_recipe>
- Run image in interactive mode (w/ write permissions)
$ singularity shell --writable <your_image_name>