This is a simple docker API to call docker command on the remote machine. It includes basic authorization for calling API.
You can use go run . -h
to see the flags that can be used.
Enable SSL
go run . -enableSSL
To Enable web api basic authorization, please set the flags to acct and pwd
go run . -acct=admin -pwd=123456
Specify the port
go run . -port=8080 -sslport=443
the default port of http is 8080, https is 443.
Enable swagger
go run . -swag
The swagger page is http://localhost:8080/swagger/index.html. The port depends on your command.
Private container registry
If you are using private container registry, you can set a username and password for that registry when running console.
go run . -cracct=username -crpwd=password
A complete sample
go run . -swag -port=8080 -sslport=443 -acct=admin -pwd=123456 -enableSSL -cracct=username -crpwd=password