-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsnippets.txt
36 lines (26 loc) · 937 Bytes
/
snippets.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# Run presentation on my machine
cd presentations/intro-docker/
python -m http.server
http://localhost:8000
# Remove and stop all containers
docker stop $(docker ps -a -q) && docker rm $(docker ps -a -q)
# Nginx
docker run -d -p 8080:80 nginx
# Nginx with mount
docker run -p 8888:80 -v c:/Users/yobitton/Documents/Code/presentations/intro-docker/examples/nginx:/usr/share/nginx/html nginx
# Example for docker commands
docker images
docker ps
docker ps -a
docker logs <container_id>
docker stop <container_id>
docker rm <container_id>
# App installed on my machine
cd c:/Users/yobitton/Documents/Code/presentations/intro-docker/examples/webapp
wsl
python3.6 app.py
# Running the app on windows system using docker
docker pull docker.io/bityob/docker-python-app
docker run --name webapp -p 5555:5000 docker.io/bityob/docker-python-app
# Show running commands from inside the container (ls, cat)
docker exec -it webapp bash