ubuntu:docker:install_docker
Differences
This shows you the differences between two versions of the page.
ubuntu:docker:install_docker [2019/11/27 01:07] – created peter | ubuntu:docker:install_docker [2020/04/15 21:34] (current) – removed peter | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Ubuntu - Docker - Install Docker ====== | ||
- | |||
- | ===== Check the kernel version and the OS architecture ===== | ||
- | |||
- | Run **uname -a** to check the version of the currently running Linux kernel: | ||
- | |||
- | <code bash> | ||
- | uname -a | ||
- | </ | ||
- | |||
- | Check that it's a 64Bit Kernel (x86_64). | ||
- | |||
- | ---- | ||
- | |||
- | Check the Ubuntu version. | ||
- | |||
- | <code bash> | ||
- | cat / | ||
- | </ | ||
- | |||
- | The command shows that the Ubuntu version is 16.04. | ||
- | |||
- | ---- | ||
- | |||
- | It is recommended to update Ubuntu before you install new software. Run the following command to fetch the latest updates from the Ubuntu repository and install them. | ||
- | |||
- | <code bash> | ||
- | sudo apt update | ||
- | sudo upgrade | ||
- | </ | ||
- | |||
- | ---- | ||
- | |||
- | Now install docker with the apt command: | ||
- | |||
- | <code bash> | ||
- | apt install -y docker.io | ||
- | </ | ||
- | |||
- | Wait until the installation has been completed. | ||
- | |||
- | ---- | ||
- | |||
- | Then you can start Docker with the systemctl command: | ||
- | |||
- | <code bash> | ||
- | systemctl start docker | ||
- | </ | ||
- | |||
- | ---- | ||
- | |||
- | Enable docker to run at system boot: | ||
- | |||
- | <code bash> | ||
- | systemctl enable docker | ||
- | </ | ||
- | |||
- | ---- | ||
- | |||
- | You might also want to check the docker version: | ||
- | |||
- | <code bash> | ||
- | docker version | ||
- | </ | ||
- | |||
- | Show the currently installed Docker version. | ||
- | |||
- | Now docker is installed in your system. | ||
ubuntu/docker/install_docker.1574816879.txt.gz · Last modified: 2020/07/15 09:30 (external edit)