Sashi cli and rootless dockerd fixes (#122)

* Fixed sashi cli create json construction issue
* Properly applied rootless slirp4netns port driver.
* Added dockerd max-concurrent-downloads.
* Changed some debug logs to info.
This commit is contained in:
Ravin Perera
2022-04-23 13:14:05 +05:30
committed by GitHub
parent f7a374c004
commit 3daa1126f6
5 changed files with 19 additions and 7 deletions

View File

@@ -199,7 +199,7 @@ namespace cli
int create(std::string_view container_name, std::string_view owner, std::string_view contract_id, std::string_view image)
{
std::string msg, output;
msg.resize(96 + owner.size() + contract_id.size() + image.size());
msg.resize(95 + container_name.size() + owner.size() + contract_id.size() + image.size());
sprintf(msg.data(), MSG_CREATE, container_name.data(), owner.data(), contract_id.data(), image.data());
const int ret = get_json_output(msg, output);