github.com/bigcommerce/nomad@v0.9.3-bc/scripts/vagrant-linux-priv-docker.sh (about)

     1  #!/usr/bin/env bash
     2  
     3  # Add the Docker repository
     4  apt-key adv \
     5  	      --keyserver hkp://p80.pool.sks-keyservers.net:80 \
     6  	      --recv-keys 9DC858229FC7DD38854AE2D88D81803C0EBFCD88
     7  add-apt-repository \
     8  	  "deb [arch=amd64] https://download.docker.com/linux/ubuntu \
     9  	$(lsb_release -cs) \
    10  	stable"
    11  
    12  # Update with i386, Go and Docker
    13  apt-get update
    14  
    15  apt-get install -y docker-ce
    16  
    17  # Restart Docker in case it got upgraded
    18  systemctl restart docker.service
    19  
    20  # Ensure Docker can be used by vagrant user
    21  usermod -aG docker vagrant