logo
publist
写文章

简介

该用户还未填写简介

擅长的技术栈

可提供的服务

暂无可提供的服务

docker执行命令和返回

import dockerclientl = docker.APIClient(base_url='unix://var/run/docker.sock')ex = clientl.exec_create("ef8b2201699b",cmd="cat /etc/passwd")response = clientl.exec_start(ex)print(response)

InspectContainer networksetting

package mainimport ("fmt""log"docker "github.com/fsouza/go-dockerclient")func main() {client, err := docker.NewClient("unix:///var/run/docker.sock")if err != nil {log.Fatal(err)}...

docker api实现dockerversion

package mainimport ("fmt""log"docker "github.com/fsouza/go-dockerclient")func main() {client, err := docker.NewClient("unix:///var/run/docker.sock")if err != nil {log.Fatal(err)}...

到底了