We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
以Ubuntu为例:
1,设置apt 仓库
# Add Docker's official GPG key: sudo apt-get update sudo apt-get install ca-certificates curl sudo install -m 0755 -d /etc/apt/keyrings sudo curl -fsSL https://download.docker.com/linux/ubuntu/gpg -o /etc/apt/keyrings/docker.asc sudo chmod a+r /etc/apt/keyrings/docker.asc # Add the repository to Apt sources: echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/ubuntu \ $(. /etc/os-release && echo "$VERSION_CODENAME") stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null sudo apt-get update
2,安装
sudo apt-get install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
3,检查安装是否成功
sudo docker run hello-world
The text was updated successfully, but these errors were encountered:
更具体来说,--privileged 参数会赋予容器下述的所有权限:
如果不使用--privileged这个核武器级别的参数,取而代之我们可以使用--cap-add去微调权限。但是在了解可以增加哪些权限之前,我们需要知道,容器运行起来后默认就带的权限,如下所示:
Sorry, something went wrong.
No branches or pull requests
安装Docker
以Ubuntu为例:
1,设置apt 仓库
2,安装
3,检查安装是否成功
The text was updated successfully, but these errors were encountered: