Skip to content

Instantly share code, notes, and snippets.

Last active May 1, 2017 08:29
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
What would you like to do?
Script to setup LInuxKit OS on Ubuntu 16.04 OS
set -e
#Verify if Docker is installed or not
docker version
if [ $? -ne 0 ]; then
echo "Docker is not installed"
curl -sSL $url | sh
echo "docker is already installed and running"
# Installing Pre-requisite Packages
sudo apt install make golang git -y
#Pulling LinuxKit Repository
git clone
# 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