Page MenuHomeDevCentral

Listen Docker registry port on internal network
ClosedPublic

Authored by dereckson on Nov 10 2018, 19:19.

Details

Summary

Docker custom images are built on Dwellers,
but registry is hosted on Equatower.

Plan is to use IntraNought secondary NIC between the servers
for internal communication. Meanwhile, a GRE tunnel has
been prepared between the two servers.

The registry container is reconfigured to listen this IP.

Test Plan

Access to the registry from Dwellers

Diff Detail

Repository
rOPS Nasqueron Operations
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

dereckson requested review of this revision.Nov 10 2018, 19:19
dereckson created this revision.
dereckson accepted this revision.Nov 10 2018, 19:23

Looks good to me:

Salt master
$ deploy-container registry
...
----------
          ID: registry
    Function: docker_container.running
      Result: True
     Comment: Replaced container 'registry'
     Started: 19:17:41.896864
    Duration: 10514.657 ms
     Changes:   
              ----------
              container:
                  ----------
                  HostConfig:
                      ----------
                      PortBindings:
                          ----------
                          new:
                              ----------
                              5000/tcp:
                                  |_
                                    ----------
                                    HostIp:
                                        10.0.1.1
                                    HostPort:
                                        5000
                          old:
                              ----------
                              5000/tcp:
                                  |_
                                    ----------
                                    HostIp:
                                        127.0.0.1
                                    HostPort:
                                        5000
              container_id:
                  ----------
                  added:
                      3c20a0c589a397ca8c10060b4e97f6984edfa7871f0d9478ca487dfe4cd0f6f5                                                                        
                  removed:
                      - 4a2cd5e1d2a9109bf01ec31f319a9e3a0a033690fc6210dbb1314f9c0c3d2603
...
Dwellers
$ nc 10.0.1.1 5000                                                                                                                                       
GET /
HTTP/1.1 400 Bad Request
Content-Type: text/plain
Connection: close

400 Bad Request
This revision is now accepted and ready to land.Nov 10 2018, 19:23
dereckson edited the test plan for this revision. (Show Details)Nov 10 2018, 19:24
This revision was automatically updated to reflect the committed changes.