219k views
3 votes
What is the command to create a new Docker network for containers to use called 'mynet'?

A) docker network create mynet

B) docker create network mynet

C) docker network add mynet

D) docker new network mynet

User Glebka
by
7.2k points

1 Answer

3 votes

Final answer:

The correct command to create a new Docker network for containers to use called 'mynet' is 'docker network create mynet'.

Step-by-step explanation:

The correct command to create a new Docker network for containers to use called 'mynet' is option A) docker network create mynet. This command creates a network with the name 'mynet' that can be used by containers. Here's an example:

docker network create mynet

User PunyFlash
by
7.4k points