python 脚本
Tofloor
poster avatar
eason1223456
deepin
2017-10-26 01:30
Author
我的python脚本os.system('sudo docker-compose up -d nginx')
[size=17.0667px]报错sudo: no tty present and no askpass program specified[size=17.0667px]
[size=17.0667px]我修改了/etc/sudoer[size=17.0667px]# User privilege specificationroot        ALL=(ALL:ALL) ALLguoweibo ALL=(ALL) NOPASSWD:ALL# Allow members of group sudo to execute any command%sudo        ALL=(ALL:ALL) ALL[size=17.0667px]

[size=17.0667px]依然报错,想问下大牛怎么解决啊
[size=17.0667px]

[size=17.0667px]

Reply Favorite View the author
All Replies
avatar
isunny
deepin
2017-10-26 02:53
#1
也是菜逼   刚看了imooc 的docker 入门

你安装 docker  后没有执行 提示的命令把当前用户加入到 docker 用户组吧  ?

使用 python 执行 sudo 命令 不合适吧??
Reply View the author