QuestionQ20

702.1 Application Container Management

After creating a new Docker network with the following command:

docker network create --driver bridge isolated_nw

Which parameter must be added to docker create to attach a container to that network?

  • A --attach=isolated_nw
  • B --network=isolated_nw
  • C --ethernet=isolated_nw
  • D --alias=isolated_nw
  • E --eth0=isolated nw
Explanation

The --network option connects a container being created to a specified Docker network. Supplying --network=isolated_nw selects the user-created bridge network named isolated_nw.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!