Flashcards
6 Docker engine storge
Flashcards do conjunto (21)
- 1What components are installed during Linux installation of DockerDocker Daemon
Rest API server
Docker CLI - 2What is Docker DaemonBackground process that manages Docker objects such as images containers volumes networks
- 3What is Docker REST API serverAPI interface that programs use to talk to Docker daemon and provide isntructions
- 4Using Docker CLI on one laptop use Docker Engine on remote host port 2375docker -H=remote-docker-engine:2375
- 5Run nginx container on a remote host (IP_ 10.123.2.1)docker -H=10.123.2.1:2375 run nginx
- 6What does docker use for isolation?Namespace
- 7What are created for isolation in their own namespace?Network
Process id
Unix Timesharing
Mount
Interprocess - 8What happends during Linux system boot?PID 1 starts (root) and it kicks off other processes
- 9How resources allocated to container can be restricted?Using control groups
- 10Explain namsespacesLook in the lecture
- 11Restrict amount of CPU in docker ubuntu to 50 percentducker run --cpus=.5 ubuntu
- 12Limit memory to 100 m in ubuntu containerdocker run --memory=100m ubuntu
- 13Docker storageWatch lecture
- 14Create persistent storagedocker volume create data_volume
- 15What happens when we execute the following command docker volume create data_volumedata_volume folder is created under
/var/lib/docker then volumes - 16Mount data_volume to /var/lib/mysqldocker run -v data_volume:/var/lib/mysql mysql
- 17Store data in /data/mysql and not in default data_volumedocker run -v /data/mysql:/var/lib/mysql mysql
- 18Write the following in more modern way docker run -v /data/mysql:/var/lib/mysql mysqldocker run --mount type=bind, source=/data/mysql, target=/var/lib/mysql mysql
- 19What is other way of connecting to Docker network from outside besides mapping ports?Associating internal network to external
- 20Create docker network 192.168.0.0/16 in bridgedocker network create \
--drive bridge \
-- subnet 192.168.0.0/16 - 21View network settings of containerdocker inspect container_name
Informações
- Descrição
- Easy Kodekloud Docker basics FlashCards sobre 6 Docker engine storge, criado por Archimed Nemes em 24-12-2022.
- Criado por
- Archimed Nemes · dez 2022
- Atualizado
- 24 dez 2022
- Visualizações
- 0
- Avaliação