Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
Script to setup LInuxKit OS on Ubuntu 16.04 OS
#!/bin/sh
set -e
#
#
#Verify if Docker is installed or not
url="https://get.docker.com/"
docker version
if [ $? -ne 0 ]; then
echo "Docker is not installed"
curl -sSL $url | sh
else
echo "docker is already installed and running"
fi
# Installing Pre-requisite Packages
sudo apt install make golang git -y
#Pulling LinuxKit Repository
git clone https://github.com/linuxkit/linuxkit
# Execute make command
cd linuxkit
sudo make
#Copy moby and linuxkit into PATH variable
sudo cp bin/* /usr/local/bin
# Use Moby to build the LinuxkitOS
sudo moby build linuxkit.yml
# Use Linuxkit to run the LinuxKit OS
sudo linuxkit run linuxkit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment