Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions models/containers.tsp
Original file line number Diff line number Diff line change
Expand Up @@ -1299,3 +1299,13 @@ alias GenericResources = {
Value?: int64;
};
}[];

/**
* Тело создания контейнера: конфиг контейнера и в том же объекте настройки хоста и сети,
* как в `ContainerCreate` Engine API.
*/
model ContainerCreateRequest {
...ContainerConfig;
HostConfig?: HostConfig;
NetworkingConfig?: NetworkingConfig;
}
2 changes: 1 addition & 1 deletion routes/containers.tsp
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ op ContainerList(@query all?: boolean, @query limit?: int32, @query size?: boole
/** Create a container */
@post
@route("/containers/create")
op ContainerCreate(@query name?: string, @query platform?: string, @body body: ContainerConfig): ContainerCreateResponse;
op ContainerCreate(@query name?: string, @query platform?: string, @body body: ContainerCreateRequest): ContainerCreateResponse;

/** Inspect a container */
@get
Expand Down