Docker (software): Difference between revisions

From David's Wiki
No edit summary
Line 44: Line 44:
</syntaxhighlight>
</syntaxhighlight>


===Windows===
==Windows==
Notes on using docker with windows
Notes on using docker with windows
====Git bash paths====
===Git bash paths===
[https://github.com/docker/toolbox/issues/673 Reference]<br>
[https://github.com/docker/toolbox/issues/673 Reference]<br>
When mounting paths using git bash, you need to prepend a <code>/</code> to <code>$(pwd)</code><br>
When mounting paths using git bash, you need to prepend a <code>/</code> to <code>$(pwd)</code><br>

Revision as of 22:03, 4 March 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

Windows

Notes on using docker with windows

Git bash paths

Reference
When mounting paths using git bash, you need to prepend a / to $(pwd)