go get github.com/Crossfire972/testapi
cd $GOPATH/src/github.com/Crossfire972/testapiTo create the conainter, run:
time docker build -t crossfire972/testapi .To start it:
docker run -d -p 1323:1323 -name testapi crossfire972/testapiTo check the it started correctly, run:
docker ps | grep testapi
docker logs testapiTo stop the container, run:
docker stop testapiTo delete the container, run:
docker rm testapi
# If the container is still running use (-f)
docker rm -f testapiTo remove the image, run:
docker rmi crossfire972/testapi