From c9b5d20abe08f7d46817394cb9da4ad292ef4129 Mon Sep 17 00:00:00 2001 From: Giancarlo Panichi Date: Tue, 22 Sep 2020 11:58:53 +0200 Subject: [PATCH] Aggiornato README.md --- README.md | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 4e61de7..46805f8 100644 --- a/README.md +++ b/README.md @@ -5,26 +5,36 @@ Starting from this example, you can first create an installable package via pip3 The package declares the sortapp command as entrypoint. So once the package is installed you can use this command at command line to run the example: -- sortapp +``` +sortapp +``` The image created in this way can be executed in a container with the following command: -- docker run -i -t --rm --name sortapp-cont sortapp sortapp - +``` +docker run -i -t --rm --name sortapp-cont sortapp sortapp +``` ## Useful Commands ### Create Distribution Package +``` python3 setup.py sdist --formats=gztar - +``` ### Create Docker Image +``` docker build -t sortapp . +``` ### Save Docker Image in file +``` docker save sortapp | gzip > sortapp.tar.gz +``` ### Publish Docker Image on DockerHub Name your local images using: + +``` By re-tagging an existing local image: - docker tag sortapp /[:] @@ -40,3 +50,4 @@ Now you can push this repository to the registry designated by its name or tag: Then logout for security: - docker logout +``` \ No newline at end of file