Skip to content

Instantly share code, notes, and snippets.

@yupadhyay
Created March 13, 2015 18:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save yupadhyay/9b0c8c97bb32fcfac7d4 to your computer and use it in GitHub Desktop.
Save yupadhyay/9b0c8c97bb32fcfac7d4 to your computer and use it in GitHub Desktop.
######## start docker in debug mode ##########
docker -dD
####### Remove Docker Image ############
# Get Docker image
docker images
# Remove image
docker rmi <Image ID>
#If process is already using this image then run this command and then remove image
docker rm $(docker ps -aq)
#Remove image
######## Change Temp Directory Location ##############
vi /etc/sysconfig/docker
# Add following data
DOCKER_TMPDIR=/export/apps/docker
DOCKER_OPTS="-g /export/apps/docker”
############ Set Up proxy ###################
vi /etc/sysconfig/docker
#To add proxy
export HTTP_PROXY="<proxy host>:<proxy port>"
export HTTPS_PROXY="<proxy host>:<proxy port>"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment