Run creates and start a container with the specified options
(ctx context.Context, t *testing.T, apiClient client.APIClient, ops ...func(*TestContainerConfig))
| 85 | |
| 86 | // Run creates and start a container with the specified options |
| 87 | func Run(ctx context.Context, t *testing.T, apiClient client.APIClient, ops ...func(*TestContainerConfig)) string { |
| 88 | t.Helper() |
| 89 | id := Create(ctx, t, apiClient, ops...) |
| 90 | |
| 91 | _, err := apiClient.ContainerStart(ctx, id, client.ContainerStartOptions{}) |
| 92 | assert.NilError(t, err) |
| 93 | |
| 94 | return id |
| 95 | } |
| 96 | |
| 97 | type RunResult struct { |
| 98 | ContainerID string |