import ( "github.com/fsouza/go-dockerclient" ) func main() { // Connect to Docker daemon using default endpoint client, err := docker.NewClientFromEnv() if err != nil { panic(err) } // Inspect a container by ID containerID := "123abc" container, err := client.InspectContainer(containerID) if err != nil { panic(err) } // Print the container's name and IP address fmt.Printf("Container %s has IP address %s\n", container.Name, container.NetworkSettings.IPAddress) }This example connects to the local Docker daemon and retrieves information about a container with ID 123abc. The container's name and IP address are then printed to the console. The go-dockerclient package library is a third-party package maintained by Felipe Souto. It is widely used in the Go community for interacting with Docker containers and images.