This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#can list running containers, stop the relevant container and then remove the image: | |
docker ps | |
docker stop <containerid> | |
docker rm <containerid> | |
docker rmi <imageid> | |
#If you cannnot find container by docker ps, you can use this to list all already exited containers and remove them. | |
docker ps -a | grep 60afe4036d97 | |
docker rm <containerid> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## List Docker CLI commands | |
docker | |
docker container --help | |
## Display Docker version and info | |
docker --version | |
docker version | |
docker info | |
## Execute Docker image |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Copyright (C) 2016 Martina Pugliese | |
#https://martinapugliese.github.io/interacting-with-a-dynamodb-via-boto3/ | |
from boto3 import resource | |
from boto3.dynamodb.conditions import Key | |
# The boto3 dynamoDB resource | |
dynamodb_resource = resource('dynamodb') |