#Inspect Docker list out container and other cmd
docker ps --all
docker ps --size
docker system df
docker system df -v
#Query container list out all exited docker container
docker ps -a -f status=exited
#Remove docker containers
docker rm -f $(docker ps -a -q)
#Explore fileSystem
docker exec -t -i <Container-id/name> /bin/bash
#Explore volume dynamolocal_d_data is eg.
docker run -it --name admin -v dynamolocal_d_data:/var/lib/ ubuntu
docker run --rm -i -v=dynamolocal_d_data:/tmp/myvolume busybox find /app
docker run --rm -i -v=dynamolocal_dynamodb_data:/tmp/myvolume busybox find /tmp/myvolume
#Volume
docker volume inspect <v-id>
#Start Local dynamodb RUN Docker Images
docker run -p 8000:8000 cnadiminti/dynamodb-local -sharedDb -dbPath /tmp
docker run -p 8000:8000 amazon/dynamodb-local
--run this cmd on where the file is extracted /jar file
java -Djava.library.path=./DynamoDBLocal_lib -jar DynamoDBLocal.jar -sharedDb
#Start localStack
docker run -it -p 4567-4578:4567-4578 -p 8080:8080 localstack/localstack
Comments
Post a Comment