package
0.0.0-20240910071834-ed0d887c65be
Repository: https://github.com/itzloop/cesa_bootcamp.git
Documentation: pkg.go.dev

# README

Docker Workshop

Build the docker image

docker build -t docker-hello:latest .

List of Images

docker images

Remove an image:

docker rmi <image_id>

Run the image

docker run docker-hello:latest

Run in detached mode:

docker run -d docker-hello:latest

Run in a specific port:

docker run -p <host_port>:<container_port> docker-hello:latest

Give a name to your container:

docker run --name dh docker-hello:latest

Run the container with an env:

docker run --env <YOUR_ENV>=<VALUE> docker-hello:latest

Display the list of containers

docker ps

Show all the containers (stopped and running):

docker ps -a

Stop and Remove the container

Stop a running container:

docker stop <container_name>

Remove a container:

docker rm <container_name>

DockerHub Registry

Login to DockerHub:

docker login -u <username>

Change the image tag:

docker tag hello-docker:latest <username>/hello-docker:latest

Push the docker image to DockerHub:

docker push <username>/hello-docker:latest

Pull the docker image from DockerHub:

docker pull <username>/hello-docker:latest

# Functions

No description provided by the author