DCA Exam Question 96
You configure a local Docker engine to enforce content trust by setting the environment variable DOCKER_C0NTENT_TRUST=l. If myorg/myimage: 1.0 is unsigned, does Docker block this command?
Solution. docker image build, from a Dockeflle that begins FROM myorg/myimage: l1.0
Solution. docker image build, from a Dockeflle that begins FROM myorg/myimage: l1.0
DCA Exam Question 97
Is this an advantage of multi-stage builds?
Solution: faster image builds by allowing parallel execution of Docker builds
Solution: faster image builds by allowing parallel execution of Docker builds
DCA Exam Question 98
During development of an application meant to be orchestrated by Kubernetes, you want to mount the /data directory on your laptop into a container.
Will this strategy successfully accomplish this?
Solution: Create a PersistentVolume with storageciass: "" and hostPath: /data, and a persistentVolumeClaim requesting this PV. Then use that PVC to populate a volume in a pod
Will this strategy successfully accomplish this?
Solution: Create a PersistentVolume with storageciass: "" and hostPath: /data, and a persistentVolumeClaim requesting this PV. Then use that PVC to populate a volume in a pod
DCA Exam Question 99
Will this command mount the host's '/data' directory to the ubuntu container in read-only mode?
Solution: 'docker run --add-volume /data /mydata -read-only ubuntu'
Solution: 'docker run --add-volume /data /mydata -read-only ubuntu'
DCA Exam Question 100
Which 'docker run' flag lifts cgroup limitations?
