Thursday, March 10, 2022
ASSIGNMENTS: Docker Network Part 3 (None Network)
None Network
When no IP address is assigned to the container you can run the container in none network. It is mostly used for applications that need to be tested in an isolated environment. After testing, we can disconnect the container from the network and connect it to another network.
Step 1: Create a centos container on none or null network
docker container run -it --name c1 --network none -d centos
Step 2: Inspect the container and verify that it is running on none networks
docker inspect c1
Step 3: Once the testing is done then remove none network from n1 container and attach bridge network
docker network disconnect none c1
docker network connect bridge c1
Step 4: Verify the n1 container is having bridge network
docker inspect c1
Subscribe to:
Post Comments (Atom)
Fluentd
Open-source log data collector > why logs? - for compliance (auditing, company, business) - for security (transparency, monitoring, admin...
-
1. Create a Replica Set with nginx image with 3 Replicas on Prod env ( means those nodes which have node label env=prod).The Replica Set s...
-
Output Redirection(>,>>): It represents the output of a command to some standard output. who > users cat users date >> us...
-
Step 1: -> Go to gitlab.com and select your repository Step 2: -> Copy the url (Clone URL Https) Step3: -> Clone it on your local s...
No comments:
Post a Comment