OpenSUSE Leap 42: Install Docker for container

Table of Contents

1 Install Docker

The following script will install Docker.

#!/bin/shsudo zypper -n in docker# FIXME: There may be a timing issue about using bridge network# before iptables is prepared.sudo sed -e ‘s;After=(.*);After=1 SuSEfirewall2.service;g’ -i /usr/lib/systemd/system/docker.servicesudo systemctl –system daemon-reloadsudo systemctl start dockersudo systemctl enable dockersudo gpasswd -a “${USER}” dockersudo reboot

2 Execution result

Run hello-world.

$ docker run hello-world<snip>Hello from Docker!<snip>

Android | Linux | SDL - Narrow Escape