Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
16 lines (11 sloc) 387 Bytes
import asyncdispatch, ../asyncdocker, json, os
const
hostname = "127.0.0.1"
port = Port(2376)
ca = joinPath(getHomeDir(), ".docker", "ca.pem")
key = joinPath(getHomeDir(), ".docker", "key.pem")
cert = joinPath(getHomeDir(), ".docker", "cert.pem")
proc main() {.async.} =
var docker = newAsyncDocker(hostname, port, ca, key, cert)
echo await docker.ps()
waitFor main()
You can’t perform that action at this time.