記錄Ubuntu14.04 LTS版本中使用Docker的過程

 1 sudo apt-get update
 2 
 3 sudo apt-get install \
 4     apt-transport-https \
 5     ca-certificates \
 6     curl \
 7     software-properties-common
 8 
 9 curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
10 
11 sudo apt-key fingerprint 0EBFCD88
12 
13 sudo add-apt-repository \
14     "deb [arch=amd64] https://download.docker.com/linux/ubuntu \
15     $(lsb_release -cs) \
16     stable"
17 
18 sudo apt-get update
19 sudo apt-get install docker-ce
mkdir -p $HOME/dotnet && tar zxf dotnet-sdk-2.1.3.tar.gz -C $HOME/dotnet
export PATH=$PATH:$HOME/dotnet

安裝完後建立項目時可能會遇到如下錯誤linux

須要安裝一個組件apt-get install libunwind8-devdocker

 

/etc/docker/daemon.json # config insecure registries & registry mirrorsjson

sudo service docker restartubuntu

sudo gpasswd -a ${USER} docker #避免每次輸入sudo執行docker命令,goups username
bash

newgrp - docker #將當前登陸會話切換到Docker組
curl

相關文章
相關標籤/搜索