Skip to content

Instantly share code, notes, and snippets.

@mlgrm
Last active January 7, 2019 11:46
Show Gist options
  • Save mlgrm/6d8af41fb40640355d4bdb2d8bb597d4 to your computer and use it in GitHub Desktop.
Save mlgrm/6d8af41fb40640355d4bdb2d8bb597d4 to your computer and use it in GitHub Desktop.
create a container running docker on a powerwashed chromebook. to be run from termina.
#!/bin/bash
# to use, run: curl -sL bit.ly/mlgrm-cros_docker_sh | bash
set -e
set -x
# download a big image
lxc launch ubuntu:16.04 docker
# make a copy of the default profile
lxc profile cp default docker
# remove the syscall blocking docker
lxc profile unset docker security.syscalls.blacklist
lxc profile apply docker docker
lxc restart docker
lxc exec docker -- apt-get update
lxc exec docker -- apt-get install -y docker.io
lxc exec docker -- apt-get install docker-compose
lxc exec docker -- usermod -a -G docker ubuntu
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment