containerConfig, err := dockerClient.ContainerInspect(context, containerID) if err != nil { // handle error } currentConfig := containerConfig.Config
newConfig := &container.Config{ Image: "my-custom-image", MemoryLimit: 1024, } updateConfig := types.UpdateConfig{Config: *newConfig} err := dockerClient.ContainerUpdateConfig(context, containerID, updateConfig) if err != nil { // handle error }Overall, the "github.com.docker.engine-api.types.container" library provides a convenient way to manage Docker container configurations using Go.