I use CircleCI to test my product then build docker packages, docker tag, docker login and docker push them.
I am trying to reproduce what I did with CC1.0 :
- Create my docker package locally
- Add my domain to
- Set up a SSH tunnel binding local port 5000 to my remote server 5000 port
- Docker Login on
mydomain.com:5000(real login is done through SSH tunnel)
- Docker push my local docker to
127.0.0.1:5000) which in fact push to the remote server
It seems a bit complex but it is a simple solution for private docker registries
With CCI2.0 I understand that I have to use the
setup_remote_docker step. But I am struggling for hours on this, trying to have my ssh tunnel (created in the
deploy command) used by the
docker engine. But the engine keeps failing
docker login with
https://domain.com:5000/v1/users/: dial tcp AAA.BBB.CCC.DDD:5000: i/o timeout. The docker engine does not take into account my /etc/hosts (nor my ssh tunnel I think).
With CCI2.0, is there a way to have my ssh tunnel and my local
/etc/hosts configuration used by docker engine ?