Skip to content

Instantly share code, notes, and snippets.

View amaalzohny's full-sized avatar
🎯
Focusing

Amal Zohny amaalzohny

🎯
Focusing
View GitHub Profile
#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>
## List Docker CLI commands
docker
docker container --help
## Display Docker version and info
docker --version
docker version
docker info
## Execute Docker image
@amaalzohny
amaalzohny / boto_dynamodb_methods.py
Last active February 26, 2018 07:41
boto_dynamodb_methods.py
# 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')