|
@@ -30,6 +30,7 @@ PYTHON:
|
|
|
|
|
|
DOCKER:
|
|
DOCKER:
|
|
- docker exec -it CONTAINER bash --> explore filesystem Docker of specified *container* (with bash); more generally, 'docker exec' will execute commands on it. The container has to be running.
|
|
- docker exec -it CONTAINER bash --> explore filesystem Docker of specified *container* (with bash); more generally, 'docker exec' will execute commands on it. The container has to be running.
|
|
|
|
+- docker [buildx] build -t IMAGE_NAME . --> build docker image of specified name using a Dockerfile in the current working directory. The buildx extra keyword is needed on Windows.
|
|
- docker run -d --name CONTAINER -p 80:80 IMAGE --> example of running Docker: run specified *image* in *container* named 'CONTAINER'; expose internal port 80 on external port 80 (-p); detach (-d)
|
|
- docker run -d --name CONTAINER -p 80:80 IMAGE --> example of running Docker: run specified *image* in *container* named 'CONTAINER'; expose internal port 80 on external port 80 (-p); detach (-d)
|
|
- docker images --> check existing Docker images
|
|
- docker images --> check existing Docker images
|
|
- docker ps [-a] --> check running [all] docker containers
|
|
- docker ps [-a] --> check running [all] docker containers
|