Network Management

Reply
Moderator

AMP-Tip: 8.2.6.1 AMPCLI: Enter Commands #4: Docker Configuration

The Docker service is used for the Glass Feeder. If you're not using Glass, then you can disable the service. It should maintain the configuration setting you set through future upgrades.

 

Here's a look at the commands added to 8.2.6.1 for configuring and checking the status of the docker interface.

 

1) Service status
2) Docker interface description
3) Configuration of Docker IP

 

For all 3, the options are part of the Enter Commands (option 11) in AMPCLI.

 

 

:: Service status ::

 

To check the status of the docker service, you can run:

 

$ service docker status
docker (pid 25334) is running...

 

You can perform all the typical service actions: start, stop, restart, status

If you're not using Glass, you can disable the service and it should remain disabled through upgrades.

 

:: Docker interface description ::

 

If the docker service is up, and the interface is up, then you can see the docker interface from the ifconfig:

 

$ ifconfig docker0
docker0 Link encap:Ethernet HWaddr 96:4A:A2:AA:AA:AA
inet addr:172.17.42.1 Bcast:0.0.0.0 Mask:255.255.0.0
inet6 addr: fe80::944a:a2ff:fe3d:daf2/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:6 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 b) TX bytes:468 (468.0 b)

 

The above shows the default address that docker takes at install.

 

 

:: Configuration of Docker IP ::

 

You can now do the docker configuration!!

 

$ ?docker
docker <bridge_ip_address/cidr_bits> - configure the Glass Feeder
If just 'docker' you will be prompted for the
bridge IP address and the number of CIDR bits.

 

If you just type 'docker', you'll get prompts for the input values:
$ docker
Docker IP Address? 10.10.10.10
Number of CIDR bits? 24
Restarting the Docker service will interrupt the Glass Feeder.
Do you want to proceed? (y/N)

 

Or you can pass the config in a single cmd like shown in the help text:
$ docker 10.10.10.10/24
Restarting the Docker service will interrupt the Glass Feeder.
Do you want to proceed? (y/N)

 

The restart is necessary to apply the config change. Once you do this, the docker interface should respond back with the address you had set.


Rob Gin
Senior QA Engineer - Network Services
Aruba Networks, a Hewlett Packard Enterprise Company
Search Airheads
cancel
Showing results for 
Search instead for 
Did you mean: