I have a brand new droplet and there appears to be something wrong with the “stable” release using these instructions. When I run sudo systemctl status docker I get a bunch of error and it throws me into Vi:

● docker.service - Docker Application Container Engine
     Loaded: loaded (/lib/systemd/system/docker.service; enabled; vendor preset: enabled)
     Active: active (running) since Tue 2020-06-23 20:47:38 AEST; 15s ago
TriggeredBy: ● docker.socket
       Docs: https://docs.docker.com
   Main PID: 20339 (dockerd)
      Tasks: 8
     Memory: 34.7M
     CGroup: /system.slice/docker.service
             └─20339 /usr/bin/dockerd -H fd:// --containerd=/run/containerd/containerd.sock

Jun 23 20:47:38 projects dockerd[20339]: time="2020-06-23T20:47:38.156277373+10:00" level=warning msg="Your kernel does not support cgroup rt runtime"
Jun 23 20:47:38 projects dockerd[20339]: time="2020-06-23T20:47:38.156436943+10:00" level=warning msg="Your kernel does not support cgroup blkio weigh>
Jun 23 20:47:38 projects dockerd[20339]: time="2020-06-23T20:47:38.156588335+10:00" level=warning msg="Your kernel does not support cgroup blkio weigh>
Jun 23 20:47:38 projects dockerd[20339]: time="2020-06-23T20:47:38.156960819+10:00" level=info msg="Loading containers: start."
Jun 23 20:47:38 projects dockerd[20339]: time="2020-06-23T20:47:38.420014263+10:00" level=info msg="Default bridge (docker0) is assigned with an IP ad>
Jun 23 20:47:38 projects dockerd[20339]: time="2020-06-23T20:47:38.643617453+10:00" level=info msg="Loading containers: done."
Jun 23 20:47:38 projects dockerd[20339]: time="2020-06-23T20:47:38.729797979+10:00" level=info msg="Docker daemon" commit=48a66213fe graphdriver(s)=ov>
Jun 23 20:47:38 projects dockerd[20339]: time="2020-06-23T20:47:38.730768864+10:00" level=info msg="Daemon has completed initialization"
Jun 23 20:47:38 projects systemd[1]: Started Docker Application Container Engine.
Jun 23 20:47:38 projects dockerd[20339]: time="2020-06-23T20:47:38.776191749+10:00" level=info msg="API listen on /run/docker.sock"
Note: If your Docker registry username is different from the local username you used to create the image, you will have to tag your image with your registry username. For the example given in the last step, you would type:

docker tag sammy/ubuntu-nodejs docker-registry-username/ubuntu-nodejs
To push the ubuntu-nodejs image to the sammy repository, the command would be:

docker push sammy/ubuntu-nodejs
To push your image, first log into Docker Hub.

docker login -u docker-registry-username
The output should be similar to the following, showing that the service is active and running:

Output● docker.service - Docker Application Container Engine
     Loaded: loaded (/lib/systemd/system/docker.service; enabled; vendor preset: enabled)
     Active: active (running) since Tue 2020-05-19 17:00:41 UTC; 17s ago
TriggeredBy: ● docker.socket
       Docs: https://docs.docker.com
   Main PID: 24321 (dockerd)
      Tasks: 8
     Memory: 46.4M
     CGroup: /system.slice/docker.service
             └─24321 /usr/bin/dockerd -H fd:// --containerd=/run/containerd/containerd.sock
Then you may push your own image using:

docker push docker-registry-username/docker-image-name
The process may take some time to complete as it uploads the images, but when completed, the output will look like this:

OutputThe push refers to a repository [docker.io/sammy/ubuntu-nodejs]
e3fbbfb44187: Pushed
5f70bf18a086: Pushed
a3b5c80a4eba: Pushed
7f18b442972b: Pushed
3ce512daaf78: Pushed
7aae4540b42d: Pushed

...
If a push attempt results in an error of this sort, then you likely did not log in:

OutputThe push refers to a repository [docker.io/sammy/ubuntu-nodejs]
e3fbbfb44187: Preparing
5f70bf18a086: Preparing
a3b5c80a4eba: Preparing
7f18b442972b: Preparing
3ce512daaf78: Preparing
7aae4540b42d: Waiting
unauthorized: authentication required
~/compose-demo/app/index.html

<!doctype html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <title>Docker Compose Demo</title>
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/kognise/water.css@latest/dist/dark.min.css">
</head>
<body>

    <h1>This is a Docker Compose Demo Page.</h1>
    <p>This content is being served by an Nginx container.</p>

</body>
</html>
You’ll see output similar to this:

1c08a7a0d0e4        ubuntu              "/bin/bash"         2 minutes ago       Exited (0) 8 seconds ago                       quizzical_mcnulty
a707221a5f6c        hello-world         "/hello"            6 minutes ago       Exited (0) 6 minutes ago                       youthful_curie

Recommend

How To Install and Use Docker on Ubuntu 20.04 Conclusion Want to learn more? Join the DigitalOcean Community! Still looking for an answer?

How To Install and Use Docker on Ubuntu 20.04 Step 8 — Pushing Docker Images to a Docker Repository

How To Install and Use Docker on Ubuntu 20.04 Step 7 — Committing Changes in a Container to a Docker Image

How To Install and Use Docker on Ubuntu 20.04 Step 6 — Managing Docker Containers

How To Install and Use Docker on Ubuntu 20.04 Step 5 — Running a Docker Container

How To Install and Use Docker on Ubuntu 20.04 Step 4 — Working with Docker Images

How To Install and Use Docker on Ubuntu 20.04 Step 3 — Using the Docker Command

How To Install and Use Docker on Ubuntu 20.04 Step 2 — Executing the Docker Command Without Sudo (Optional)

How To Install and Use Docker on Ubuntu 20.04 Step 1 — Installing Docker

Использование Visual Studio Code для удаленной разработки с помощью плагина Remote-SSH Шаг 3 — Выполнение кода на удаленном сервере

Использование Visual Studio Code для удаленной разработки с помощью плагина Remote-SSH Шаг 2 — Настройка плагина Remote-SSH и подключение к серверу

Built-in Python 3 Functions for Working with Numbers Prerequisites Still looking for an answer?

Built-in Python 3 Functions for Working with Numbers Calculating a Sum

Built-in Python 3 Functions for Working with Numbers Rounding Numbers

Built-in Python 3 Functions for Working with Numbers Power

Built-in Python 3 Functions for Working with Numbers Absolute Value Finding the Quotient and Remainder in One Function

Built-in Python 3 Functions for Working with Numbers Absolute Value

Cómo indexar, dividir y manipular cadenas en JavaScript Búsqueda y sustitución de valores de cadenas

Cómo indexar, dividir y manipular cadenas en JavaScript Recorte de espacios en blanco

Cómo indexar, dividir y manipular cadenas en JavaScript División de cadenas

Cómo indexar, dividir y manipular cadenas en JavaScript Conversión a mayúsculas o minúsculas

Cómo indexar, dividir y manipular cadenas en JavaScript Búsqueda de la longitud de una cadena

Cómo indexar, dividir y manipular cadenas en JavaScript Acceso a los caracteres

Cómo indexar, dividir y manipular cadenas en JavaScript Las primitivas de cadena y los objetos String

How To Set Up Zoho Mail with a Custom Domain Managed by DigitalOcean DNS Conclusion Want to learn more? Join the DigitalOcean Community! Still looking for an answer?

Cómo instalar y proteger Redis en Ubuntu 18.04 Paso 5 - Renombrar comandos peligrosos