mirror of
https://github.com/BreizhHardware/cours-ISEN-MD.git
synced 2026-01-18 16:47:24 +01:00
Obisidian vault auto-backup: 14-01-2026 14:00:20 on . 1 files edited
This commit is contained in:
@@ -45,7 +45,34 @@ git log --oneline --graph --all
|
||||
|
||||
# TP Docker
|
||||
```bash
|
||||
# Our app
|
||||
docker build -t getting-started .
|
||||
docker run -dp 8080:3000 getting-started
|
||||
docker ps
|
||||
docker stop df7d1efc94cd
|
||||
docker rm df7d1efc94cd
|
||||
|
||||
# Updating our app
|
||||
nano src/static/js/app.js
|
||||
docker build -t getting-started .
|
||||
docker run -dp 8080:3000 getting-started
|
||||
|
||||
# Sharing our app
|
||||
docker login nexus.mrqt.fr
|
||||
docker build -t nexus.mrqt.fr/dockerr/getting-started:latest .
|
||||
docker push nexus.mrqt.fr/dockerr/getting-started:latest
|
||||
|
||||
# Persisting our DB
|
||||
docker run -d ubuntu bash -c "shuf -i 1-10000 -n 1 -o /data.txt && tail -f /dev/null"
|
||||
docker exec 3b64c4b556b255f49d4587f34aea0b14201f05431af487068a9e35c0c98e2b0b cat /data.txt
|
||||
# 3788
|
||||
docker run -it ubuntu ls /
|
||||
# bin boot dev etc home lib lib64 media mnt opt proc root run sbin srv sys tmp usr var
|
||||
docker rm -f 3b64c4b556b255f49d4587f34aea0b14201f05431af487068a9e35c0c98e2b0b
|
||||
docker volume create todo-db
|
||||
docker ps
|
||||
docker rm -f e7663a0b8f1d
|
||||
1. ```
|
||||
docker run -dp 3000:3000 -v todo-db:/etc/todos getting-started
|
||||
|
||||
```
|
||||
Reference in New Issue
Block a user