Actions

Difference between revisions of "Docker"

From /oooooooooo.io/

Line 26: Line 26:
  
 
[[Section::Code Notes]]
 
[[Section::Code Notes]]
[[Date::2018]]
+
[[Date::2020]]

Revision as of 12:42, 21 February 2020

build

sudo docker build -t calculator_api:latest .

Load image file into local docker images repository

sudo docker load -i calculator_api.tar

Run container

sudo docker run --rm -p 6543:6543 --name calculator_api calculator_api:latest

Enter running container

sudo docker run --rm -it --entrypoint=/bin/sh calculator_api:latest

save to image

sudo docker save calculator_api:latest | gzip > calculator_api.tar.gz

Shutdown the docker container gracefully:

sudo docker stop calculator_api


Code Notes 2020

... more about "Docker"
Code Notes +
Date"Date" is a type and predefined property provided by Semantic MediaWiki to represent date values.
2020 +