diff options
author | Nurrl <Thecakeisplaying@gmail.com> | 2018-10-13 23:08:40 +0200 |
---|---|---|
committer | doug tangren <d.tangren@gmail.com> | 2018-10-13 17:08:40 -0400 |
commit | df93b62adebd7c2e99d0b82c33d7b68077d09015 (patch) | |
tree | 6bac651041b93671332f7ff383a656718ddafb1a /src/lib.rs | |
parent | 9aca748b0c0079d5e8b429709c6e510606a76756 (diff) |
Fixed error causing bad json to be sent to Docker API. (#124)
Diffstat (limited to 'src/lib.rs')
-rw-r--r-- | src/lib.rs | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -524,7 +524,7 @@ impl<'a> Containers<'a> { &self, opts: &ContainerOptions, ) -> Result<ContainerCreateInfo> { - let data = serde_json::to_string(opts)?; + let data = opts.serialize()?; let bytes = data.into_bytes(); let mut path = vec!["/containers/create".to_owned()]; |