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
http://onexin.iyunv.com/source/plugin/onexin_bigdata/https://app.yinxiang.com/shard/s41/res/e572c24d-63a3-48d9-9bb8-9f34f1bcf58c/2014-12-18_222242.png?resizeSmall&width=1304
页:
[1]