Last active
January 7, 2019 11:46
-
-
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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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