sudo apt-get update sudo apt-get install \
apt-transport-https \
ca-certificates \
curl \
software-properties-common curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - sudo apt-key fingerprint 0EBFCD88 sudo add-apt-repository \
"deb [arch=amd64] https://download.docker.com/linux/ubuntu \
$(lsb_release -cs) \
stable" sudo apt-get update
sudo apt-get install docker-ce
mkdir -p $HOME/dotnet && tar zxf dotnet-sdk-2.1..tar.gz -C $HOME/dotnet
export PATH=$PATH:$HOME/dotnet
安装完后创建项目时可能会遇到以下错误
需要安装一个组件apt-get install libunwind8-dev
/etc/docker/daemon.json # config insecure registries & registry mirrors
sudo service docker restart
sudo gpasswd -a ${USER} docker #避免每次输入sudo执行docker命令,goups username
newgrp - docker #将当前登录会话切换到Docker组