update docker compose
This commit is contained in:
parent
68e053d1ee
commit
a5a602ba2a
@ -102,19 +102,19 @@ etc.
|
||||
|
||||
## Own App: Dockerfile
|
||||
|
||||
`Dockerfile` ist eine einfache Textdatei, mit der man eigene Images bauen kann. Sie basieren immer auf einem bestehenden base Image (z.B. `nginx:latest` oder `node:16.13.0-alpine`). Mit `docker build` wird das image erstellt, bevor man es mit `docker run` starten kann.
|
||||
`Dockerfile` is a simple text file that is used for building docker images. They always base on an existing base image (e.g. `nginx:latest` or `node:16.13.0-alpine`). `docker build` creates the image, before it can be started with `docker run`.
|
||||
|
||||
Dockerfile documentation: https://docs.docker.com/reference/builder
|
||||
|
||||
### Build Docker image
|
||||
|
||||
Im Ordner wo das Dockerfile liegt, ausführen:
|
||||
In the folder, where Dockerfile is:
|
||||
|
||||
```
|
||||
docker build .
|
||||
```
|
||||
|
||||
Um dem Image einen Namen und einen Tag zu geben (1.0 ist im folgenden Beispiel der Tag)
|
||||
To add a name and a tag to the image (1.0 would be the tag in the following example):
|
||||
|
||||
```
|
||||
docker build -t node-app:1.0 .
|
||||
@ -268,8 +268,6 @@ docker run --init -d -p 3000:80 -v /home/roger/meine-dateien:/home/daten -e FOO=
|
||||
|
||||
## Share data
|
||||
|
||||
which are stored and handled internally by docker (c.f. docker config to choose where they are actually stored).
|
||||
|
||||
### Bind mounts
|
||||
|
||||
Directories on the host system are mapped into the container with `-v`.
|
||||
|
||||
Loading…
Reference in New Issue
Block a user