Cpo Design

Using Docker behind Proxy

Pavel Svarc Friday, April 20, 2018 12:11 AM

 

Please note that the following steps are describing how I got the docker running on my machine, it does not mean that your company may have different rules. So before you get into that, please check with your Company to get permission to do this.

How to deal with PROXY  

In order to proceed from behind proxy I have two options.

  1. Get exception access
  2. Install local proxy 

1, Get exception access

Exception access process is very time consuming. Because I am charting path to unknown especially in the eyes of IT department I would have to justify every step I am doing. For every step I would have to make a official request, get it approved and proceed to the next step. Also the justification for something I think I need at the moment and might not know will not endear me to the business managers nor IT.

2, Install local proxy

I have used CNTLM (see links). I had to go through configuration of this service.

Using the following command: 

cntlm -c cntlm.ini -I -M http://google.ro

 

After you have configured it, make sure it is running. It can be installed as windows service. If you have chosen this version, I have made sure it is automatically starting up and is running. Otherwise the next steps will not work.

Installation of Docker

For my purpose I have used docker community edition for Windows 10. Installation link may be found in links.

Docker CE for Windows is Docker designed to run on Windows 10. It is a native Windows application that provides an easy-to-use development environment for building, shipping, and running dockerized apps. Docker CE for Windows uses Windows-native Hyper-V virtualization and networking and is the fastest and most reliable way to develop Docker apps on Windows. Docker CE for Windows supports running both Linux and Windows Docker containers.

Note: I had to install it under administration account.

Upon successful installation you will get your docker icon in systems tray and get a lovely docker icon. If you right click on it with right button, you will get context menu. In here you will find options

  • switch to Windows containers
  • switch to Linux containers

Ensure you have the windows option. To know you have it selected you will see the other option possible.

Setting up proxy through UI

Setting up proxy through UI