Difference between revisions of "Docker"

From PKC
Jump to navigation Jump to search
Line 32: Line 32:
=Building Multi-Architecture Image=
=Building Multi-Architecture Image=
To build docker images for multiple architectures (ARM and AMD/Intel), please look at [https://jitsu.com/blog/multi-platform-docker-builds Multi-Platform Docker Builds]
To build docker images for multiple architectures (ARM and AMD/Intel), please look at [https://jitsu.com/blog/multi-platform-docker-builds Multi-Platform Docker Builds]
 
Another reference is here: [https://www.docker.com/blog/multi-arch-build-and-images-the-simple-way/ Mutli-architecture build and images]
==More Advance Reading==
==More Advance Reading==
# [https://www.redhat.com/en/blog/architecting-containers-part-1-why-understanding-user-space-vs-kernel-space-matters Why Understanding User Space vs. Kernel Space matters?]
# [https://www.redhat.com/en/blog/architecting-containers-part-1-why-understanding-user-space-vs-kernel-space-matters Why Understanding User Space vs. Kernel Space matters?]
# [https://www.redhat.com/en/blog/architecting-containers-part-2-why-user-space-matters Why User Space matters?]
# [https://www.redhat.com/en/blog/architecting-containers-part-2-why-user-space-matters Why User Space matters?]
# [https://www.redhat.com/en/blog/architecting-containers-part-3-how-user-space-affects-your-application How User Space affects your application?]
# [https://www.redhat.com/en/blog/architecting-containers-part-3-how-user-space-affects-your-application How User Space affects your application?]

Revision as of 11:17, 1 February 2022

Since this project utilizes Docker technologies extensively, it is necessary to provide documentation on Docker.

Before reading books on Docker, one can start reading some of the following articles:

  1. Six Docker Basics
  2. Docker ARG, ENV and .env - a Complete Guide
  3. Container Terminology Practical Introduction
  4. Dive Into Docker website

Some Utilities to run Docker

"See this docker container? I wish I could run another one just like it,
but I'll be damned if I'm going to type all those command-line switches manually!"

Docker Installation Mysteries

There are two main packages for Docker installation, docker.io and containerd.io. If your network doesn't resolve certain repository site, you might not be able to install the software properly, and you might not be given the signals about why. In my case, I used a VPN service to pretend my computer is situated in the USA, and some problems are resolved. The particular case in point is here:

echo "[TASK 5] Install containerd runtime"
apt update -qq >/dev/null 2>&1
apt install -qq -y containerd apt-transport-https >/dev/null 2>&1
mkdir /etc/containerd
containerd config default > /etc/containerd/config.toml
systemctl restart containerd
systemctl enable containerd >/dev/null 2>&1

Install software from local repository

One way to avoid software download problems is to install a local instance of software repository. Relevant information can be found here: Set up Local Repository for Ubuntu.

Building Multi-Architecture Image

To build docker images for multiple architectures (ARM and AMD/Intel), please look at Multi-Platform Docker Builds Another reference is here: Mutli-architecture build and images

More Advance Reading

  1. Why Understanding User Space vs. Kernel Space matters?
  2. Why User Space matters?
  3. How User Space affects your application?