Thanks to visit codestin.com
Credit goes to github.com

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
2 changes: 1 addition & 1 deletion server/container_create.go
Original file line number Diff line number Diff line change
Expand Up @@ -401,7 +401,7 @@ func setupCapabilities(specgen *generate.Generator, caps *types.Capability, defa

// CreateContainer creates a new container in specified PodSandbox
func (s *Server) CreateContainer(ctx context.Context, req *types.CreateContainerRequest) (res *types.CreateContainerResponse, retErr error) {
log.Infof(ctx, "Creating container: %s", translateLabelsToDescription(req.Config.Labels))
log.Infof(ctx, "Creating container: %s", translateLabelsToDescription(req.GetConfig().GetLabels()))

sb, err := s.getPodSandboxFromRequest(req.PodSandboxId)
if err != nil {
Expand Down
1 change: 0 additions & 1 deletion server/container_create_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,6 @@ var _ = t.Describe("ContainerCreate", func() {
response, err := sut.CreateContainer(context.Background(),
&types.CreateContainerRequest{
PodSandboxId: testSandbox.ID(),
Config: newContainerConfig(),
SandboxConfig: newPodSandboxConfig(),
})

Expand Down