How to Create a Virtual Machine using VirtualBox
$ sudo apt install dkms build-essential
How to install Docker Engine on Ubuntu
Before you install Docker Engine for the first time on a new host machine, you need to set up the Docker repository. Afterward, you can install and update Docker from the repository.
-
Update the apt package index and install packages to allow apt to use a repository over HTTPS:
$ sudo apt-get update $ sudo apt-get install apt-transport-https ca-certificates curl gnupg lsb-release
-
Add Docker’s official GPG key:
$ curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg
-
Use the following command to set up the stable repository. To add the nightly or test repository, add the word nightly or test (or both) after the word stable in the commands below.
$ echo "deb [arch=amd64 signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
-
Update the apt package index, and install the latest version of Docker Engine and containerd, or go to the next step to install a specific version:
$ sudo apt-get update $ sudo apt-get install docker-ce docker-ce-cli containerd.io
-
Verify that Docker Engine is installed correctly by running the hello-world image.
$ sudo docker run hello-world
How to install Docker Compose on Linux systems
On Linux systems, first install the Docker Engine for your OS as described on the Get Docker page, then come back here for instructions on installing Compose on Linux systems.
- Run this command to download the current stable release of Docker Compose:
$ sudo curl -L "https://github.com/docker/compose/releases/download/1.29.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
- Apply executable permissions to the binary:
$ sudo chmod +x /usr/local/bin/docker-compose
- Test the installation.
$ docker-compose --version
- YAML Tutorial: Get Started With YAML in 5 Minutes
- Установка LEMP с помощью Docker'а
- Docker самый простой и понятный туториал. Изучаем докер, так, если бы он был игровой приставкой
- Docker и docker-compose для начинающих. Докеризуем интернет-магазин
- Nginx. Руководство для начинающих
- 20 команд MySQL (mysqladmin) для администратора базы данных в Linux
- Linux Administration (github page)
- 50-server.cnf