Skip to content

Commit 5fff42a

Browse files
authored
Update docker-interview-questions.md
1 parent 060a339 commit 5fff42a

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

docker/docker-interview-questions.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -556,3 +556,16 @@ a) Using `--cap-add CPU` . <br>
556556
b) Using` --cpuset-cpus` . <br>
557557
c) Using` --cpus `. <br>
558558
d) It is not possible to specify the number of CPUs;we have to use `--cpu-shares` and define the CPU slices. <br>
559+
560+
561+
## 2. How can we limit the amount of memory available to a container?
562+
a) It is not possible to limit the amount of memory available to a container.<br>
563+
b) Using `--cap-drop MEM `.<br>
564+
c) Using `--memory` .<br>
565+
d) Using `--memory-reservation` .<br>
566+
567+
## 3.What environment variables should be exported to start using a trusted environment with the Docker client?
568+
a) `export DOCKER_TRUSTED_ENVIRONMENT=1 `<br>
569+
b) `export DOCKER_CONTENT_TRUST=1`<br>
570+
c) `export DOCKER_TRUST=1`<br>
571+
d) `export DOCKER_TRUSTED=1`<br>

0 commit comments

Comments
 (0)