Ubuntu 18.04 Docker

$ sudo docker info. If you see the following warning at the end of the output you will have to make some changes in system files. WARNING: Noswaplimitsupport. In this case, follow the steps below on ubuntu 18.04. Log into Ubuntu host as a user with sudo privileges. Edit the /etc/default/grub file and add the following line into it. Install Ubuntu on Windows 10 WSL using these instructions. You need to start the docker explicitly with sudo /etc/init.d/docker start. To verify everything is fine after installation; run the following command on Powershell. If it shows below output, that means Ubuntu-18.04 is running on WSL 2. Now that you have enabled the docker repository on your Ubuntu 18.04, you can install the latest version or any specific version of Docker that you want. If you want to install the latest version of docker in your Ubuntu 18.04 write the commands given below: $ sudo apt update. $ sudo apt install docker-ce. This will install the latest version. Ubuntu 18.04 LTS with Docker CE(™) Docker is open source software used to develop, test, deliver and run web applications in containerized environments. It is needed for more efficient use of the system and resources, rapid deployment of ready-made software products, as well as for scaling and porting them to other environments with. There may be hundreds of custom Ubuntu 18.04 Docker images on Docker Hub that have our favorite development tools. However, many of us would rather create our Ubuntu 18.04 Docker image as base image for our various container needs. This post demonstrates how create a local Ubuntu 18.04 Docker image and update the operating system using a.

Tutorial to download and install Cockpit Docker package, Container Image and customize its Settings from Cockpit’s Web GUI Dashboard on Ubuntu 20.04/18.04 LTS Linux Server.

The Cockpit is an easy solution to manage server resources remotely using the graphical web interface. It is not only light in weight but also present to install in most of the Linux repositories such as in popular Ubuntu, RedHat, Fedora, and CentOS to install with just a single command.

Well, if we talk about Docker container management in Cockpit, then this really helpful to easily manage virtual machines or containers graphically. Yes, we can install and delete containers using few mouse clicks. No need to go through the command line to manage them. However, in Ubuntu 20.04 the Docker package for Cockpit is not available to install but we can do that manually by directly installing its Deb file. Here, we let you know how to do that in this tutorial.


  • Open Cockpit Web Interface to Manage Docker container

How to Install Cockpit on Ubuntu 20.04

Although, if you are following this tutorial then you would already have Cockpit installed on your Ubuntu server. However, if not then here is the command to that.

First, update your system packages-

Now, run the command to install Cockpit

Ubuntu 18.04 Docker Downloads

How to install Docker on Ubuntu 20.04 Server

Ubuntu 18.04 docker version

The second thing is, we must have apart from the server management platform is Docker itself, otherwise, how will we manage it using Cockpit, remotely using the browser.

Thus, run the below command to download and install Docker’s latest version on the Ubuntu server.

Yes, we don’t need to add any third-party repo because the packages to install Docker are available in the official repository of Ubuntu.

Next, once this Container platform installed, add your current user into Docker’s group, so that you won’t need to use sudo to run its commands.

Ubuntu 18.04 Docker

Now, reload the Shell using the below command or alternatively you can log out and log in to your current session, as well.

Install Cockpit Docker module

This is the main part of the tutorial because without Cockpit’s Docker package you will not be able to access your containers from the Web interface. Thus, first, download it using the below command-

Note– It is a single command, hence, copy whole and then paste it into your terminal.

And then install the downloaded Cockpit-Docker Debian package-

Open Cockpit Web Interface to Manage Docker container

Use any system that can access your Ubuntu 20.04 LTS server or desktop IP address. And open web browser – type server-IP-address with cockpit port that is 9090.

For example192.168.0.11:9090

A Login page will appear, enter your Ubuntu username and password.

Docker Containers

Ubuntu 18.04 docker commands

After that Select Docker Containers option given on the Cockpit’s Dashboard Menu.

Ubuntu 18.04 docker 19.03

Download Image

To download any Docker app image from Hub, click on the “Get New Image” option.

Ubuntu 18.04 docker free

Image Search

Type the name of the App Image that you want to download for creating a new container. Here we are using Ubuntu image.

Run Image

Once the image downloaded and extracted by the system, click on the Run icon and you will see a pop-up to customize container settings before actually starting it. You can change the Container Name, increase or decrease Memory and CPU capacity, mount container volume, link to another container, and manage ports. If you are new to this, then simply click on the RUN button to start it.

The running container will appear on the dashboard.

Access conainter shell

Once the installed Docker container service has been started you can either access it from the Container area or via SSH or directly from the Terminal of Cockpit.

Ubuntu 18.04 Docker Command

Click on the running Container Name.

You will see complete information along with a small Command line terminal window. You can run all command to your docker machine directly from here. If you want to change the size, the simply Increase the size of your current browser tab, by pressing Ctrl button on keyboard and rolling scroller button on mouse.

Alternatively, click on the Terminal option given in the menu and manually connect to the running container. For example,

docker run -itconainer-name

Here we have ubuntu conainer then the above command will be-

Most Viewed Posts