[PLDWWW] page changed: packages:lxc-docker
"Elan Ruusamäe (glen)"
glen at pld-linux.org
Wed Aug 28 21:42:30 CEST 2013
add create base image script
--- https://www.pld-linux.org/packages/lxc-docker?rev=1377552955
+++ https://www.pld-linux.org/packages/lxc-docker
@@ -59,11 +59,44 @@
</code>
And there, you can get familiar with [[https://www.docker.io/gettingstarted/|getting started]] samples.
- There's also [[https://index.docker.io/u/glen/pld/|pld test]] image prepared:
+ There's also [[https://index.docker.io/u/glen/pld/|pld test]] image prepared, or [[#|build yourself]]:
<code bash>
vagrant at pld64 ~$ sudo docker run -i -t glen/pld bash
root at ae0aac5de155 ~#
</code>
But you probably want to create your own with ''docker import'', see available samples in [[https://github.com/dotcloud/docker/tree/master/contrib|docker/contrib/]].
+
+ ===== PLD Base image =====
+
+ Simple script to create new base image for pld:
+
+ <code bash mkimage-pld.sh>
+ #!/bin/sh
+ set -e
+
+ ROOTFS=~/root
+ IMAGE=pld
+
+ # to clean up:
+ docker rmi $IMAGE
+
+ # build
+ rpm -r $ROOTFS --initdb
+ poldek -r $ROOTFS --up -u bash iproute2 coreutils
+
+ # and import
+ tar -C $ROOTFS -cf- . | docker import - $IMAGE
+ </code>
+
+ <file>
+ # sh -x /vagrant/mkimage-pld.sh
+ + rpm -r /home/vagrant/root --initdb
+ + poldek -r root --up -u bash iproute2
+ + docker import - pld
+ # docker run -i -t pld bash
+ WARNING: IPv4 forwarding is disabled.
+ [root at e8d2bb1215c2 /]# id
+ uid=0(root) gid=0(root) groups=0(root)
+ </file>
Diff URL:
https://www.pld-linux.org/packages/lxc-docker?do=diff&r1=1377552955&r2=1377718949
--
This mail was generated by DokuWiki at
https://www.pld-linux.org/
More information about the pld-cvs-commit
mailing list