useradd ec2-user
passwd ec2-user
usermod -G docker ec2-user
vi /usr/share/polkit-1/actions/org.freedesktop.systemd1.policy
<defaults>
60 <allow_any>yes</allow_any>
61 <allow_inactive>yes</allow_inactive>
62 <allow_active>yes</allow_active>
63 </defaults>
systemctl daemon-reload
docker ps
docker restart xxx
docker logs -f xxx
docker exec -it xxx /bin/bash
标签:普通用户,logs,xxx,ec2,docker,执行,yes From: https://www.cnblogs.com/walkersss/p/17305833.html