VOOZH about

URL: https://www.digitalocean.com/community/tutorials/how-to-install-and-use-docker-on-ubuntu-18-04?comment=73177

⇱ How To Install and Use Docker on Ubuntu 18.04 | DigitalOcean


How To Install and Use Docker on Ubuntu 18.04

Updated on August 9, 2021
Not using Ubuntu 18.04?
Choose a different version or distribution.
Ubuntu 18.04
πŸ‘ How To Install and Use Docker on Ubuntu 18.04

A previous version of this tutorial was written by finid.

Introduction

Docker is an application that simplifies the process of managing application processes in containers. Containers let you run your applications in resource-isolated processes. They’re similar to virtual machines, but containers are more portable, more resource-friendly, and more dependent on the host operating system.

For a detailed introduction to the different components of a Docker container, check out The Docker Ecosystem: An Introduction to Common Components.

In this tutorial, you’ll install and use Docker Community Edition (CE) on Ubuntu 18.04. You’ll install Docker itself, work with containers and images, and push an image to a Docker Repository.

Thanks for learning with the DigitalOcean Community. Check out our offerings for compute, storage, networking, and managed databases.

Learn more about our products

About the author

Managed the Write for DOnations program, wrote and edited community articles, and makes things on the Internet. Expertise in DevOps areas including Linux, Ubuntu, Debian, and more.

Still looking for an answer?

Was this helpful?

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

As ever… you guys do the best guides in internet land. Seriously, people should use DO guides as a benchmark on how to write guides. I have no idea how you manage to get them so simple, clean and informative time and time again. For this reason alone, I am committed to using your servers. Great work guys… again!

Registered just to say this is a superb article. Newbie to Docker and followed it to sucess.

Managing Docker Containers - Adding comment here in case anyone like me needs it. Once you re-start the docker image and you need to connect to it you use the following:

docker exec -t -i container-name /bin/bash

There is also an attach option but seems to be the above is favoured. Will let others more qualified to comment on this

Hi,

I’m stuck at add the GPG key for the official Docker repository to your system:. I get the error:

option -: is unknown

Please can you assist?

Thank you for the tutorial. I have a question though: Is it possible to install Docker on another partition on my system? I noticed it installs itself on File system on Ubuntu, where I don’t have a lot of space and Docker with its files takes more than 6GB so it’s really a problem

I’m on 18.04 Bionic and looks like I’m still getting this error:

Ign:10 https://download.docker.com/linux/ubuntu (lsb_release InRelease 
Err:11 https://download.docker.com/linux/ubuntu (lsb_release Release 
 404 Not Found [IP: 54.192.230.81 443]
Reading package lists... Done 
E: The repository 'https://download.docker.com/linux/ubuntu (lsb_release Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.

Hello Brain! I have no idea how to install and use docker on ubuntu. But after reading this blog I will definitely complete this task. Thanks for sharing.

Thank you for your tutorial. it is helpful to installation Docker.

πŸ‘ Creative Commons
This work is licensed under a Creative Commons Attribution-NonCommercial- ShareAlike 4.0 International License.
  • Deploy on DigitalOcean

    Click below to sign up for DigitalOcean's virtual machines, Databases, and AIML products.

Become a contributor for community

Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.

DigitalOcean Documentation

Full documentation for every DigitalOcean product.

Resources for startups and AI-native businesses

The Wave has everything you need to know about building a business, from raising funding to marketing your product.

The developer cloud

Scale up as you grow β€” whether you're running one virtual machine or ten thousand.

Start building today

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.

Β© 2026 DigitalOcean, LLC.Sitemap.