Arch Linux - Docker Node - Installation - ( Part I )

Arch Linux - Docker Node - Installation - ( Part I )

I am going to use Arch Linux to create my docker node.

After the Arch installation we need to install the docker package.

pacman -S docker

Start docker.

systemctl start docker
[root@docker0 ~]# systemctl status docker
● docker.service - Docker Application Container Engine
     Loaded: loaded (/usr/lib/systemd/system/docker.service; disabled; vendor preset: disabled)
     Active: active (running) since Tue 2021-09-21 23:00:01 BST; 21s ago
TriggeredBy: ● docker.socket
       Docs: https://docs.docker.com
   Main PID: 377 (dockerd)
      Tasks: 19 (limit: 4693)
     Memory: 36.9M
        CPU: 380ms
     CGroup: /system.slice/docker.service
             ├─377 /usr/bin/dockerd -H fd://
             └─385 containerd --config /var/run/docker/containerd/containerd.toml --log-level info

Sep 21 23:00:00 docker0 dockerd[377]: time="2021-09-21T23:00:00.678381210+01:00" level=info msg="ccResolverWrapper: sending update to cc: {[{unix:///var/run/docker/containerd/containerd.sock  <nil> 0 <nil>}] <>
Sep 21 23:00:00 docker0 dockerd[377]: time="2021-09-21T23:00:00.678474109+01:00" level=info msg="ClientConn switching balancer to \"pick_first\"" module=grpc
Sep 21 23:00:00 docker0 dockerd[377]: time="2021-09-21T23:00:00.908401460+01:00" level=info msg="Loading containers: start."
Sep 21 23:00:01 docker0 dockerd[377]: time="2021-09-21T23:00:01.226520122+01:00" level=info msg="Default bridge (docker0) is assigned with an IP address 172.17.0.0/16. Daemon option --bip can be used to set a >
Sep 21 23:00:01 docker0 dockerd[377]: time="2021-09-21T23:00:01.434885204+01:00" level=info msg="Loading containers: done."
Sep 21 23:00:01 docker0 dockerd[377]: time="2021-09-21T23:00:01.503860910+01:00" level=warning msg="Not using native diff for overlay2, this may cause degraded performance for building images: kernel has CONFI>
Sep 21 23:00:01 docker0 dockerd[377]: time="2021-09-21T23:00:01.504138306+01:00" level=info msg="Docker daemon" commit=75249d88bc graphdriver(s)=overlay2 version=20.10.8
Sep 21 23:00:01 docker0 dockerd[377]: time="2021-09-21T23:00:01.504286933+01:00" level=info msg="Daemon has completed initialization"
Sep 21 23:00:01 docker0 systemd[1]: Started Docker Application Container Engine.
Sep 21 23:00:01 docker0 dockerd[377]: time="2021-09-21T23:00:01.597341088+01:00" level=info msg="API listen on /run/docker.sock"
docker info
Client:
 Context:    default
 Debug Mode: false
 Plugins:
  buildx: Build with BuildKit (Docker Inc., v0.6.1-docker)

Server:
 Containers: 0
  Running: 0
  Paused: 0
  Stopped: 0
 Images: 0
 Server Version: 20.10.8
 Storage Driver: overlay2
  Backing Filesystem: extfs
  Supports d_type: true
  Native Overlay Diff: false
  userxattr: false
 Logging Driver: json-file
 Cgroup Driver: systemd
 Cgroup Version: 2
 Plugins:
  Volume: local
  Network: bridge host ipvlan macvlan null overlay
  Log: awslogs fluentd gcplogs gelf journald json-file local logentries splunk syslog
 Swarm: inactive
 Runtimes: io.containerd.runc.v2 io.containerd.runtime.v1.linux runc
 Default Runtime: runc
 Init Binary: docker-init
 containerd version: 72cec4be58a9eb6b2910f5d10f1c01ca47d231c0.m
 runc version: v1.0.2-0-g52b36a2d
 init version: de40ad0
 Security Options:
  seccomp
   Profile: default
  cgroupns
 Kernel Version: 5.14.6-arch1-1
 Operating System: Arch Linux
 OSType: linux
 Architecture: x86_64
 CPUs: 4
 Total Memory: 3.834GiB
 Name: docker0
 ID: CD27:6TBD:DIWE:W3WA:XUPQ:KRZA:KFYS:TOHQ:BYX4:TOZQ:NM57:WYFV
 Docker Root Dir: /var/lib/docker
 Debug Mode: false
 Registry: https://index.docker.io/v1/
 Labels:
 Experimental: false
 Insecure Registries:
  127.0.0.0/8
 Live Restore Enabled: false

We nee to enable docker on boot.

systemctl enable docker.service
Created symlink /etc/systemd/system/multi-user.target.wants/docker.service → /usr/lib/systemd/system/docker.service.

We concluded the installation of docker on a minimal resources consumption virtual machine, running a recent kernel version with the latest features.


    0[                                                                                           0.0%]   Hostname: docker0
    1[                                                                                           0.0%]   Tasks: 14, 19 thr; 1 running
    2[                                                                                           0.0%]   Load average: 0.00 0.00 0.00 
    3[                                                                                           0.0%]   Uptime: 13:40:36
  Mem[|||#************                                                                     116M/3.83G]
  Swp[                                                                                        0K/512M]

Share Tweet Send
0 Comments
Loading...
You've successfully subscribed to Infoitech - [B]logging
Great! Next, complete checkout for full access to Infoitech - [B]logging
Welcome back! You've successfully signed in
Success! Your account is fully activated, you now have access to all content.