Docker and Containers: Commands Set 4

Which command is used to create a volume?


Options are :

  • docker volume create docker
  • docker volume --create docker
  • docker create docker
  • docker volume create

Answer : docker volume create docker

Which command is used to list the volumes created?


Options are :

  • docker volume ls
  • docker volume --ls
  • docker volume -ls
  • docker volume LS

Answer : docker volume ls

Which command is used to inspect the volume?


Options are :

  • docker volume inspect docker
  • docker vol inspect docker
  • docker volume inspect
  • docker volume --inspect docker

Answer : docker volume inspect docker

Docker Certified Associate (DCA) Practice Exams Set 21

Which command is used to see the different network options?


Options are :

  • docker network --help
  • docker network help
  • docker network --search
  • docker network --find

Answer : docker network --help

Which command is used to create a new network using the bridge driver?


Options are :

  • docker network create --driver bridge
  • docker network --driver bridge
  • docker network --create --driver bridge
  • docker network create --driver --bridge

Answer : docker network create --driver bridge

Which command is used to see the list of networks available?


Options are :

  • docker network ls
  • docker network --ls
  • docker network LS
  • docker --network ls

Answer : docker network ls

Docker Certified Associate (DCA) Practice Exams Set 11

We can't connect the existing container to a network. This statement is


Options are :

  • TRUE
  • FALSE

Answer : FALSE

Which of the following command can be used to connect the existing container to a network?


Options are :

  • docker network connect
  • docker connect network
  • docker network
  • docker net connect

Answer : docker net connect

Which commad can be used to inspect a network?


Options are :

  • docker network inspect
  • docker inspect
  • docker network inspect
  • docker network --inspect

Answer : docker network inspect

Docker Certified Associate (DCA) Practice Exams Set 7

Which of the following command is used to disconnect an existing container from a network?


Options are :

  • docker network disconnect
  • docker network disc
  • docker network --d
  • docker network disconnect

Answer : docker network disconnect

Which command is used to remove a network?


Options are :

  • network rm
  • network --rm
  • network -rm
  • network --remove

Answer : network rm

Which command is used to know the options available with the "commit" command?


Options are :

  • docker container commit --help
  • docker commit --help
  • docker container --help
  • docker --help

Answer : docker container commit --help

Docker Certified Associate (DCA) Practice Exams Set 17

Which command is used to commit changes and create a new image from a container's changes?


Options are :

  • docker container commit [OPTIONS] CONTAINER [REPOSITORY[:TAG]]
  • docker container CONTAINER [REPOSITORY[:TAG]]
  • docker container [OPTIONS] CONTAINER [REPOSITORY[:TAG]]
  • docker container commit [OPTIONS] CONTAINER

Answer : docker container commit [OPTIONS] CONTAINER [REPOSITORY[:TAG]]

Which command is used to set an environment variables that would be used by container?


Options are :

  • -e
  • -ee
  • -e
  • -env

Answer : -e

To set multiple environment variables you must use multiple commands. This statement is


Options are :

  • TRUE
  • FALSE

Answer : FALSE

Docker Certified Associate (DCA) Practice Exams Set 23

Which of the following is a valid command to set environment variable?


Options are :

  • docker container run --rm --env SOME_VAR=Helloword -it ABC: sh
  • docker container --rm --env SOME_VAR=Helloword -it ABC: sh
  • docker container run --rm -env SOME_VAR=Helloword -it ABC: sh
  • docker container run --rm env SOME_VAR=Helloword -it ABC: sh

Answer : docker container run --rm --env SOME_VAR=Helloword -it ABC: sh

Which command is used to list the different flags available with the "search" command?


Options are :

  • docker search --help
  • docker find --help
  • docker list --help
  • Search docker --help

Answer : docker search --help

Which command is used to search for an image using the docker cli?


Options are :

  • docker search
  • docker find
  • docker list
  • search docker

Answer : docker search

Docker Certified Associate (DCA) Practice Exams Set 6

The --no-trunc flag is used to display the non-truncated description. This statement is


Options are :

  • TRUE
  • FALSE

Answer : TRUE

The --limit flag is used to display the maximum number of search result. This statement is


Options are :

  • TRUE
  • FALSE

Answer : TRUE

Which of the following is the default value of --limit flag?


Options are :

  • 100
  • 25
  • 15
  • 35

Answer : 25

Docker Certified Associate (DCA) Practice Exams Set 7

Which of the following is the range value of --limit flag?


Options are :

  • 1 to 100
  • 25 to 100
  • 15 to 100
  • 0 to 99

Answer : 1 to 100

Which of the following is a best and precise "search" command?


Options are :

  • docker search --no-trunc --limit 10
  • docker search --no-trunc --limit 101
  • docker search --no-trunc --limit 10
  • search docker --no-trunc --limit 10

Answer : docker search --no-trunc --limit 10

Which of the following --format flag can be used to print the output table with tab separated columns based on a given input command condition?


Options are :

  • docker search --format "table {?{.Name}}\tab{?{.IsAutomated}}\tab{?{.IsOfficial}}\tab{?{.StarCount}}"
  • docker search --format "table {?{.Name}}\t{?{.IsAutomated}}\t{?{.IsOfficial}}\t{?{.StarCount}}"
  • docker search --format "table {?{.Name}}\n{?{.IsAutomated}}\n{?{.IsOfficial}}\n{?{.StarCount}}"
  • docker search --format "table {?{.Name}}{?{.IsAutomated}}{?{.IsOfficial}}{?{.StarCount}}"

Answer : docker search --format "table {?{.Name}}\t{?{.IsAutomated}}\t{?{.IsOfficial}}\t{?{.StarCount}}"

Docker Certified Associate (DCA) Practice Exams Set 20

The --filter flag can be used to filter the search result. This statement is


Options are :

  • TRUE
  • FALSE

Answer : TRUE

Which filter command will output 10 entries, images having 6 star ratings, and OK labelled automation?


Options are :

  • docker find --filter stars=6 --filter is-automated=true --limit 10
  • docker search --filter stars=6 --filter is-automated=true --limit 10
  • docker search --filter stars=6 --filter is-automated=true --limit
  • docker search --filter stars=6 --filter is-automated=false --limit 10

Answer : docker search --filter stars=6 --filter is-automated=true --limit 10

What command can be used to view the different sub-commands that could be used with container commands?


Options are :

  • docker --help container
  • docker container --help
  • docker container --search
  • docker --search container

Answer : docker container --help

Docker Certified Associate (DCA) Practice Exams Set 17

What command can be used to view the different options available to work with "run" command?


Options are :

  • docker container run --search
  • docker run container --help
  • docker container run --help
  • docker --search container run

Answer : docker container run --help

The --attach list option available with container "run" command is a valid option available? --attach list


Options are :

  • TRUE
  • FALSE

Answer : TRUE

Is it a valid option available with container run command? --detach list


Options are :

  • TRUE
  • FALSE

Answer : TRUE

Docker Certified Associate (DCA) Practice Exams Set 6

Comment / Suggestion Section
Point our Mistakes and Post Your Suggestions