Get the App
SLTechnology News&Howtos  ›  Servers  › 

How to install docker, machine, compose, virtualbox in ubuntu16 | kvm

Shulou Source: shulou.com Published: 2022-06-01 02:18:07 09月22日 Update

This article mainly shows you "how to install docker, machine, compose, virtualbox | kvm in ubuntu16", the content is easy to understand, clear, hope to help you solve your doubts, the following let the editor lead you to study and learn "how to install docker, machine, compose, virtualbox | kvm" this article.

Install docker

Other: https://docs.docker.com/engine/installation/

$sudo apt-get remove docker docker-engine docker.io# remove the old version $sudo apt-get update$ sudo apt-get install linux-image-extra-$ (uname-r) linux-image-extra-virtual# install docker storage driver $sudo apt-get update$ sudo apt-get install apt-transport-https ca-certificates curl software-properties-common# configuration repository install $curl-fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -# add docker official key $sudo apt-key fingerprint 0EBFCD88# Authentication key $sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release-cs) stable" # set up the repository Lsb_release-cs is the name of the distribution. For example, xenial$ sudo apt-get update$ sudo apt-get install docker-ce# installs the latest docker community version $apt-cache madison docker-ce$ sudo apt-get install docker-ce=#, or you can check the version. Select the stable version $sudo docker run hello-world# to verify that docker-ce installs machine.

Other: https://docs.docker.com/machine/install-machine/#installing-machine-directly

$curl-L https://github.com/docker/machine/releases/download/v0.12.2/docker-machine-`uname-s`-`uname-m` > / tmp/docker-machine & & chmod + x / tmp/docker-machine & & sudo cp / tmp/docker-machine / usr/local/bin/docker-machine# install docker-machine$ docker-machine version# verify machine install composesudo curl-L https://github.com/docker/compose/releases/download/1.16.1/docker- Compose- `uname-s`-`uname-m`-o / usr/local/bin/docker-compose# installation composesudo chmod + x / usr/local/bin/docker-compose# add x permissions docker-compose-- version# verify compose installation virtualbox

Other: https://www.virtualbox.org/wiki/Linux_Downloads

Vim / etc/apt/sources.listdeb http://download.virtualbox.org/virtualbox/debian xenial contrib# add apt Source wget https://www.virtualbox.org/download/oracle_vbox_2016.asc# download latest keyssudo apt-key add oracle_vbox_2016.asc# add keys to aptsudo apt-get updatesudo apt-get install virtualbox-5.1# install virtualboxsudo apt-get-f install# solution dependency sudo apt-get install virtualbox-5.1vboxmanage-- version# verify installation kvm

Version except ubuntu16: https://github.com/dhiltgen/docker-machine-kvm/releases

# cannot install virtualbox or other usermod-G group user drivers that occupy CPU virtualization software $curl-L https://github.com/dhiltgen/docker-machine-kvm/releases/download/v0.10.0/docker-machine-driver-kvm-ubuntu16.04 > / usr/local/bin/docker-machine-driver-kvm\ chmod + x / usr/local/bin/docker-machine-driver-kvm# to install kvm$ sudo apt-get install libvirt-bin qemu-kvm# kvm at the same time Create machinedocker-machine create machine-name# by default using vbox as the driver docker-machine create-d kvm myengine0 above is "how to install docker in ubuntu16, Machine, compose, virtualbox | kvm "all the contents of this article Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!

Tags: Authentication version content article storage driver key learning help at the same time name official easy to understand more permissions organization knowledge community program editing Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Shulou Tech Info OPPO Reno Redmi MySQL MariaDB