This page is read only. You can view the source, but not change it. Ask your administrator if you think this is wrong. ===== Suse Containers ===== ==== Warning ==== You will need to register Suse to correctly use LXC or Docker. ==== Suse 11 ==== === LXC === <code> zypper install lxc yast2-lxc bridge-utils </code> To create a container you can use Yast2: <code> yast2 lxc </code> To start container: <code> lxc-start --name containername </code> Suse stores the config files on: /etc/lxc/ and rootfs on: /var/lib/lxc/ == Mount CDROM == Verify configuration of /dev/sr0: <code> # ls -al /dev/cdrom lrwxrwxrwx 1 root root 3 Mar 29 12:32 /dev/cdrom -> sr0 # ls -al /dev/sr0 brw-rw---- 1 root cdrom 11, 0 Mar 29 12:32 /dev/sr0 </code> Configure /etc/lxc/containername/config to add this lines: <code> # cdrom lxc.cgroup.devices.allow = b 11:* rwm </code> Run the container and create the node: <code> mknod -m 666 /dev/cdrom b 11 0 </code> ==== LXC ==== <code> zypper install libvirt-daemon-lxc libvirt-daemon-config-network </code> ==== Docker ==== === With subscription === <code> zypper install sle2docker zypper install docker-distribution-registry systemctl enable registry systemctl start registry </code> Grab binaries: * https://download.opensuse.org/distribution/leap/42.2/repo/oss/suse/x86_64/runc-0.1.1+gitcc29e3d-3.1.x86_64.rpm.mirrorlist * https://software.opensuse.org/package/docker * https://software.opensuse.org/package/containerd Install it: <code> zypper in git-core rpm -i runc-0.1.1+gitcc29e3d-3.1.x86_64.rpm docker-1.12.1-146.1.x86_64.rpm containerd-0.2.3-3.1.x86_64.rpm systemctl enable docker systemctl start docker </code> ==== References ==== * https://www.suse.com/documentation/sles11/singlehtml/lxc_quickstart/lxc_quickstart.html * https://newspaint.wordpress.com/2015/03/29/how-can-i-access-a-block-device-such-as-cdrom-in-lxc/