Skip to content
My playing with docker in golang. Only for fun and study...
Go
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore
LICENSE
README.md
create.go
go.mod
go.sum
main.go
run.go

README.md

dockerctl

My playing with docker in golang. Only for fun and study...

  1. creating Docker image from directory with Dockerfile
  2. running container from Docker image with exposing public port

build

git clone https://github.com/podanypepa/dockerctl.git
cd dockerctl
go build

usage

./dockerctl -u

output:

usage:

build/create docker image:
./dockerctl -c -d DIR_PATH -i IMG_NAME

run container from image:
./dockerctl -r -i IMG_NAME

if you want run container with exposed port:
./dockerctl -r -i IMG_NAME -p PORT
You can’t perform that action at this time.