7. Useful Docker Commands¶
7.1. List the Nodes:¶
The following command lists all the nodes. You can identify the node with “name” names, its same as node name given in the topology file.
sudo docker ps -a
Screenshot:
7.2. How to Install the package(application) in the Node:¶
Each node is a Ubuntu Linux Container. So you can execute all the linux commands in the Container once you logged in.
7.2.1. To Login to the node:¶
sudo docker exec -it <node name> bash
Example:
sudo docker exec -it a1 bash
Screenshot:
7.2.2. To Install the package in the node,¶
First login to the node as mentioned above,
apt-get update
apt-get install <package name>
Example:
apt-get install iperf3
Screenshot: