diff options
author | Brent Baude <bbaude@redhat.com> | 2020-02-26 15:15:36 -0600 |
---|---|---|
committer | Brent Baude <bbaude@redhat.com> | 2020-03-06 14:31:45 -0600 |
commit | 8b5e2a6297e6f6a5426551d1648278906a9d23de (patch) | |
tree | 7de8fe4102b581404dc3c012445750008a5b5495 /pkg/api/handlers | |
parent | a61d05f667f6ba74ed060d5938e99d9838c1763f (diff) | |
download | podman-8b5e2a6297e6f6a5426551d1648278906a9d23de.tar.gz podman-8b5e2a6297e6f6a5426551d1648278906a9d23de.tar.bz2 podman-8b5e2a6297e6f6a5426551d1648278906a9d23de.zip |
add default network for apiv2 create
during container creation, if no network is provided, we need to add a default value so the container can be later started.
use apiv2 container creation for RunTopContainer instead of an exec to the system podman. RunTopContainer now also returns the container id and an error.
added a libpod commit endpoint.
also, changed the use of the connections and bindings slightly to make it more convenient to write tests.
Fixes: 5366
Signed-off-by: Brent Baude <bbaude@redhat.com>
Diffstat (limited to 'pkg/api/handlers')
-rw-r--r-- | pkg/api/handlers/containers.go | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/pkg/api/handlers/containers.go b/pkg/api/handlers/containers.go index 31cbde229..1256256fd 100644 --- a/pkg/api/handlers/containers.go +++ b/pkg/api/handlers/containers.go @@ -72,7 +72,6 @@ func UnpauseContainer(w http.ResponseWriter, r *http.Request) { return } - // the api does not error if the Container is already paused, so just into it if err := con.Unpause(); err != nil { utils.InternalServerError(w, err) return |