Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

Readme.md

Docker

alpine images are smaller in size

for permission -

sudo usermod -aG docker $USER

newgrp docker

sudo chmod 666 /var/run/docker.sock - not secure, everyone will have the permission

to remove docker container docker rm containerid

remove image

docker rmi imageid

host port:container port

go inside -

docker exec -it id /bin/sh

check

how to find running container size

docker ps --size

Writing Dockerfile

ECR

sudo usermod -aG docker ubuntu newgrp docker

ECR

Elastic Container Registry --> Create a repository -->

namespace / repo name

in IAM create new user attach policies - AmazonEC2ContainerRegistryFullAccess

security credentials ->access key

aws confidure

then got o Push commands for devops

image

image

Docker Network

Bridge is the default network , WHEN WE CREATING CONTAINER BY DEAFULT CONTAINER WILL GET CONNECTED TO THIS host - host mmachines network shared with docker container none -

docker network ls -sowing availble networks image