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@pld64 ~$ sudo docker run -i -t glen/pld bash root@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@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/ _______________________________________________ pld-cvs-commit mailing list [email protected] http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit
