3. DOCKER & KUBERNETES : BASIC DETAILS
################ EVERY DAY ACTIVITY ##############################
double click on "Docker Quickstart Terminal"
wait for sometime to generate IP address...
putty
192.168.99.100
username: docker
password: tcuser
open another terminal
Create duplicate session
username: docker
password: tcuser
sudo -i
docker info //to check how many images and containers are there
ps ax | grep dockerd
docker system df //to check number of images and containers and size accupaid
docker ps -a //to check image and containers status (wether exited or running etc)
###########################################################
############### PRUNE #####################################
//its like inspect command works for all objects, [image, container, volume, network etc..]
//remove unwanted container
docker container prune //like GC, it will remove all stopped containers
//this is same as docker rm <<containerName>> but prune does for us
docker system df
//remove unwanted image
docker image prune //like GC, but it wont remage dongling images
docker image prune -a //will remove all images which does not contain container in it
docker network prune
docker volume prune
//prune for all objects together
docker system prune
##########################################################################
################ EVERY DAY ACTIVITY ##############################
double click on "Docker Quickstart Terminal"
wait for sometime to generate IP address...
putty
192.168.99.100
username: docker
password: tcuser
open another terminal
Create duplicate session
username: docker
password: tcuser
sudo -i
docker info //to check how many images and containers are there
ps ax | grep dockerd
docker system df //to check number of images and containers and size accupaid
docker ps -a //to check image and containers status (wether exited or running etc)
###########################################################
############### PRUNE #####################################
//its like inspect command works for all objects, [image, container, volume, network etc..]
//remove unwanted container
docker container prune //like GC, it will remove all stopped containers
//this is same as docker rm <<containerName>> but prune does for us
docker system df
//remove unwanted image
docker image prune //like GC, but it wont remage dongling images
docker image prune -a //will remove all images which does not contain container in it
docker network prune
docker volume prune
//prune for all objects together
docker system prune
##########################################################################
No comments:
Post a Comment