Skip to content

Instantly share code, notes, and snippets.

@ericcgu
Last active March 28, 2019 20:13
Show Gist options
  • Save ericcgu/7e6698699afd2665abde0f0c48014f9d to your computer and use it in GitHub Desktop.
Save ericcgu/7e6698699afd2665abde0f0c48014f9d to your computer and use it in GitHub Desktop.
Docker
hemplab-casino1-dev
export http_proxy=http://server.proxy.vzwcorp.com:9290
export https_proxy=http://server.proxy.vzwcorp.com:9290
export no_proxy=.verizon.com
sudo yum update -y
yum install nano -y
yum install epel-release -y
yum groupinstall 'Development Tools'
yum install python-pip -y
pip install --upgrade pip
curl -fsSL https://get.docker.com/ | sh
pip install docker-compose
docker login
mkdir /etc/systemd/system/docker.service.d
nano /etc/systemd/system/docker.service.d/http-proxy.conf
[Service]
Environment="HTTP_PROXY=http://server.proxy.vzwcorp.com:9290"
Environment="HTTPS_PROXY=http://server.proxy.vzwcorp.com:9290"
Environment="NO_PROXY=.verizon.com"
systemctl daemon-reload
systemctl show --property Environment docker
systemctl restart docker
sudo usermod -aG docker casino
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment