docker-py execute echo无效

错误写法:
cli.execute('9b2606a50304','echo "bibo">/tmp/1.txt')
 
争取写法:
cli.execute('9b2606a50304','bash -c "echo \'yuanyuan\' > /tmp/2.txt"')
 
参考:https://bugzilla.redhat.com/show_bug.cgi?id=1146821

posted @ 2015-01-19 11:58  BiboXie  阅读(254)  评论(0编辑  收藏  举报