Docker 實作輕量級的作業系統虛擬化解決方案,以 Linux 容器 (LXC) 等技術為基礎,進一步封裝讓使用者不需要去關心容器的管理,使得操作更為簡便。Docker 最初是 dotCloud 公司內部的一個業餘專案,採用 Google 的 Go 語言實作。專案後來加入了 Linux 基金會,以 Apache 2.0 開源。
Docker get started:
- Build and run an image as a container
- Share images using Docker Hub
- Deploy Docker applications using multiple containers with a database
- Running applications using Docker Compose
scan images for security vulnerabilities.
安裝 Docker (精確地講 Docker Engine):在 Linux 稱 Server,在 macOS/Widnows 稱 Desktop。
- Docker Server for Linux:提供 x86_64/amd64、arm64/aarch64、和 arm (32-bit) 架構,CentOS、Debian、Fedora、Raspbian、和 Ubuntu 的 .deb/.rpm 套件。
- Docker Desktop for Widnows。
- Docker Desktop for macOS amd64。
- Docker Desktop for macOS arm64
- 支援 x86 和 ARM 架構不需要複雜的 cross-compilation 開發環境。
- docker buildx:seamlessly integrate multi-platform builds
- Docker Hub:identify and share repositories that provide multi-platform images.
Docker Desktop for Linux 會在虛擬電腦下執行,不同於先前的 Linux Docker Engine,images 和 containers 也不適用。
參考
- 虛擬機器
- container 是一個隔離的 process. That isolation leverages kernel namespaces and cgroups, features that have been in Linux for a long time. Docker has worked to make these capabilities approachable and easy to use.
- 來自 Aqua Security 的 Liz Rice 用 Go 語言從頭建立 Container:https://youtu.be/8fi7uSYlOdc
沒有留言:
張貼留言