- Download and install Docker from https://www.docker.com/get-started
Activities
-
Download and run alpine docker container
-
Connect to container
-
Create docker image (using dockerfile)
-
push to docker repo (https://docs.docker.com/docker-hub/)
- work with docker container
#list containers
docker ps -a
#stop and remove container
docker stop <conteinerID>
docker rm <conteinerID>
- work with docker images
#list images
docker images
#remove images
docekr rmi <image_id>
- find IP of docker container
DCIP=$(docker inspect -f '{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' <my-container-name>)
- run bash on docker container
docker exec -i -t <conteinerID> /bin/bash