How to detect the type of virtualization from the command line

Question: I am trying to write a shell script in which I need to detect whether the Linux server on which the script is running is a virtual machine, a container or actual bare-metal hardware. This is because the script should perform different tasks depending on whether the underlying server is virtual or physical. Is […]
Continue reading…

 

How to upgrade Docker on Debian or Ubuntu using the official source

Question: I installed Docker from the base repository of my distro, which seems to be out-of-date. How can I upgrade Docker on [Ubuntu or Debian], preferably using the official source? While Debian, Ubuntu or their derivatives offer Docker in their base repositories, the version of their Docker tends to be quickly outdated as Docker has […]
Continue reading…

 

How to upgrade Docker on Ubuntu from Canonical’s PPA repository

Question: I installed Docker on Ubuntu using its standard repositories. However, the default Docker installation does not meet the version requirement for my another application that relies on Docker. How can I upgrade Docker to the latest version on Ubuntu? Since Docker was first released in 2013, it has been fast evolving into a full-blown […]
Continue reading…