Trace: suse_containers

Suse Containers

Warning

You will need to register Suse to correctly use LXC or Docker.

Suse 11

LXC

zypper install lxc yast2-lxc bridge-utils

To create a container you can use Yast2:

yast2 lxc

To start container:

lxc-start --name containername

Suse stores the config files on: /etc/lxc/ and rootfs on: /var/lib/lxc/

Mount CDROM

Verify configuration of /dev/sr0:

# 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

Configure /etc/lxc/containername/config to add this lines:

# cdrom
lxc.cgroup.devices.allow = b 11:* rwm

Run the container and create the node:

mknod -m 666 /dev/cdrom b 11 0

LXC

zypper install libvirt-daemon-lxc libvirt-daemon-config-network

Docker

With subscription

zypper install sle2docker 
zypper install docker-distribution-registry
systemctl enable registry
systemctl start registry

Grab binaries:

Install it:

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

References

suse_containers.txt · Last modified: 2019/02/07 11:01
Public Domain Except where otherwise noted, content on this wiki is licensed under the following license: Public Domain