/testapi

testing dockerizing golang application

Primary LanguageGoMIT LicenseMIT

Testapi

Go commands

go get github.com/Crossfire972/testapi
cd $GOPATH/src/github.com/Crossfire972/testapi

Docker Commands

To create the conainter, run:

time docker build -t crossfire972/testapi .

To start it:

docker run -d -p 1323:1323 -name testapi crossfire972/testapi

To check the it started correctly, run:

docker ps | grep testapi
docker logs testapi

To stop the container, run:

docker stop testapi

To delete the container, run:

docker rm testapi

# If the container is still running use (-f)
docker rm -f testapi

To remove the image, run:

docker rmi crossfire972/testapi