在 /etc/init.d/docker的start()函数末尾加入:chmod 777 /var/run/docker.sock
否则web程序会没有权限去操作
 

python web调用docker-py

相关文章: