This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# create an empty container for data -- mounted by docker into the /var/lib/docker* path | |
docker run --name=data-01--interactive --tty --volume=/data null /not.runnable.data.only.container | |
# use the empty data container | |
docker run --name=shell-with-data-01 --volumes-from=data-01 --interactive --tty centos:centos6 /bin/bash | |
# Multiple containers can use this for common storage. | |
docker run --name=shell-with-data-02 --volumes-from=data-01 --interactive --tty centos:centos6 /bin/bash |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# same idea as [https://docs.docker.com/articles/baseimages] different name than scratch | |
tar cv --files-from /dev/null | docker import - null |
NewerOlder