docker shell command code example
Example 1: docekr enter container
docker exec -it [container-id] bash
Example 2: docker interactive shell
docker exec -it [containerid/name] [shell]
docker exec -it fa80b69 bash
Example 3: docker bash command
docker exec -it <container> bash
Example 4: how to bash into docker container
docker exec -it nginx /bin/bash
Example 5: docker exec bash
//For executing commands in the container
docker exec -it <CONTAINER_NAME> bash
Example 6: docker command
docker ps
docker run
docker create
dokcer exec
docker volume
docker network
docker rm
docker images
docker rmi
docker build
docker push
docker pull
docker commit