Docker (software): Difference between revisions

From David's Wiki
Created page with " ==Installation== ===Ubuntu=== [https://docs.docker.com/install/linux/docker-ce/ubuntu/#install-docker-engine---community-1 Reference] <syntaxhighlight lang="bash"> # Update..."
 
Line 34: Line 34:


==Usage==
==Usage==
===Images===
<syntaxhighlight lang="bash">
<syntaxhighlight lang="bash">
</syntaxhighlight>


===Containers===
<syntaxhighlight lang="bash">
docker container ls
</syntaxhighlight>
</syntaxhighlight>

Revision as of 20:11, 3 January 2020


Installation

Ubuntu

Reference

# Update repos
sudo apt update

# Install prerequisites
sudo apt-get install \
    apt-transport-https \
    ca-certificates \
    curl \
    gnupg-agent \
    software-properties-common

# Add official gpg key
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -

# Add docker repo
sudo add-apt-repository \
   "deb [arch=amd64] https://download.docker.com/linux/ubuntu \
   $(lsb_release -cs) \
   stable"

# Install
sudo apt-get update
sudo apt-get install docker-ce docker-ce-cli containerd.io

Guides

Get Started

Usage

Images

Containers

docker container ls