diff options
author | 2016-11-30 23:33:40 +0100 | |
---|---|---|
committer | 2016-11-30 23:43:45 +0100 | |
commit | 5e50ec8d65705b41140d06ec13611f0b3108f7b9 (patch) | |
tree | 8e7f30d8c883ac401e0d02962bff05be3e66f06d /README.md | |
parent | 7417e97927e5a06dddb3d2166e5ccc06a1a16aae (diff) |
more fixes: apt more robust, versioning support, create_container script
Change-Id: Id4d8b93c935d27919aa945660ad614f8c73368de
Signed-off-by: Stephane Desneux <stephane.desneux@iot.bzh>
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 28 |
1 files changed, 27 insertions, 1 deletions
@@ -45,4 +45,30 @@ In turn, this setup script will: When the setup script finishes, Docker commits the temporary container in a new image. -This image can then be exported to a tarball and/or pushed to a Docker registry.
\ No newline at end of file +This image can then be exported to a tarball and/or pushed to a Docker registry. + +## Using the generated image + +### Grab the image + +To publish the image, there are 2 ways: using a docker registry OR exporting to a tarball. + +In the first case, using the image is very easy as it can be pulled directly from the registry host using a 'docker pull' command. The main issue with this method is the efficiency: images are not compressed and it takes ages to transfer overlays to the client host. + +In the second case, the efficiency is better but requires to transfer the image archive manually. On the client host, loading the image is as simple as: + +``` +# wget -O - <archive_url> | docker load +``` + +### Instantiate a container + +The following command can be used as an example to instantiate a container: + + +``` +# ./create_container 0 +``` + +To instantiate more containers on the same host, the instance ID passed as argument must be different from the previous ones. + |