Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

docker proxy ubuntu

#------------------- WORKS FOR DEBIAN DISTROS ---------------------
# First create this directory
sudo mkdir -p /etc/systemd/system/docker.service.d
# Create config file
sudo nano /etc/systemd/system/docker.service.d/proxy.conf
# Add the content below to match your environment variables
[Service]
Environment="HTTP_PROXY=http://myproxy.hostname:8080"
Environment="HTTPS_PROXY=https://myproxy.hostname:8080/" # Depending on your net use the http(s)://
Environment="NO_PROXY="localhost,127.0.0.1,::1"
# Close your edtor
# Reload your daemon
sudo systemctl daemon-reload
# Reload docker service
sudo systemctl restart docker.service
Comment

docker proxy ubuntu

#export http_proxy="http://127.0.0.1:3128/"
Comment

PREVIOUS NEXT
Code Example
Shell :: sed replace word with newline 
Shell :: zip folder ssh 
Shell :: folium 
Shell :: How to create and extract an archive or .tar file using linux commands 
Shell :: get linux directory size 
Shell :: print first word of each line by grep 
Shell :: wget 
Shell :: how to install all your pipenv packages 
Shell :: show hidden files mac 
Shell :: powershell to connect to remote computer 
Shell :: skip ci gitlab 
Shell :: git revert a specific file 
Shell :: redis scan keys and print values shell 
Shell :: neovim open file 
Shell :: what is group in linux? 
Shell :: merge_otu_tables.py qiime 
Shell :: export gitlog file 
Shell :: service previous logs 
Shell :: bubulle epitceh 
Shell :: install h5py ubuntu 20.04 pip 
Shell :: edit user data 
Shell :: import database via power shell 
Shell :: install laravel installer on fish shell 
Shell :: Check status service Apache FreeBSD 
Shell :: ubuntu check gstreamer version 
Shell :: pip install scikit learn 
Shell :: zsh-autosuggestions change key 
Shell :: linux .desktop file for sh file 
Shell :: stop openhab2 service 
Shell :: how to install pulseaudio volume control on fedora 
ADD CONTENT
Topic
Content
Source link
Name
4+6 =