Installation + Configuration Flashcards

1
Q

Installation on multiple platforms

A

Centos:

  1. Install required packages:
  2. Add docker ce repo
  3. Install the Docker CE packages and containerd.io
  4. Start and enable the Docker service:

Ubuntu:

  1. install required packages
  2. Add the Docker GPG key and repo:
  3. Install Docker CE packages:
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

How to configure the default logging driver

A

sudo vi /etc/docker/daemon.json

{
  "log-driver": "json-file",
  "log-opts": {
    "max-size": "15m"
  }
}
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Overwrite default logging on run

A

docker run –log-driver json-file –log-opt max-size=50m nginx

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Describe the use of namespaces

A

namespaces are a linux tech that allows processes to be isolated in terms of the resources that they see

docker uses namespaces to isolate containers

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Describe some docker namespaces

A
  • pid: process isolation
  • net: network interfaces
  • ipc: inter process communication
  • mnt: filesystem mounts
  • uts: kernel and version identifies
  • user namespaces
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Describe the use of cgroups

A

limits an application to a specific set of resources

allow docker to share hardware resources to containers and optionally enforce constraints and limits

How well did you know this?
1
Not at all
2
3
4
5
Perfectly