daap:通过劫持StdoutStderr将Docker用作一个进程

时间:2021-05-15 13:08:42
【文件属性】:
文件名称:daap:通过劫持StdoutStderr将Docker用作一个进程
文件大小:9KB
文件格式:ZIP
更新时间:2021-05-15 13:08:42
Go 达普 使用Docker容器作为完全分离的子进程。 例子 container := NewContainer ( "debian:latest" , Args { Machine : & MachineConfig { Host : "tcp://192.168.0.2" , CertPath : "/Users/otiai10/.docker/machine/machines/foobar" , }, }) ctx := context . Background () container . PullImage ( ctx ) container . Create ( ctx ) container . Start ( ctx ) stream , _ := container . Exec ( ctx , & Execution { Inline :
【文件预览】:
daap-master
----start.go(333B)
----retry.go(646B)
----all_test.go(681B)
----create.go(1KB)
----response.go(288B)
----machine.go(451B)
----container.go(1KB)
----image.go(952B)
----volume.go(1KB)
----hijack.go(1KB)
----.travis.yml(560B)
----README.md(721B)
----exec.go(4KB)
----upload.go(1KB)
----.gitignore(399B)
----mount.go(874B)

网友评论