📌  相关文章
📜  如何使用 EC2 实例在命令行上安装和启用 docker - Shell-Bash 代码示例

📅  最后修改于: 2022-03-11 14:50:14.598000             🧑  作者: Mango

代码示例1
sudo yum update -y
sudo amazon-linux-extras install docker -y
sudo systemctl start docker
sudo systemctl enable docker
sudo usermod -a -G docker ec2-user (to avoid sudo command usage)
newgrp docker (to avoid sudo command usage)