You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To specify the *filename* to ***build*** otherwise it is expected to be named `Dockerfile`.
43
+
44
+
- Using `--target php-5-6-build`
45
+
46
+
To select the ***build target stage***[^multi_stage_builds_note] from the *Dockerfile*.
47
+
42
48
### Create A Container
43
49
44
50
This creates a named container and attaches it to the ***host network*** and may cause port conflict if the host machine is already listening on any exposed ports from the ***Docker Image*** being used.
This creates a named container and attaches it to the ***bridge network*** and allows for ***port forward mapping*** from the ***host*** to the ***Container***. The ports are mapped **8080** on the ***Host*** machine to port **80** on the ***Container***
58
+
This creates a named container and attaches it to the ***bridge network*** and allows for ***port forward mapping*** from the ***host*** to the ***Container***.
To ***Volume Mount*** the folder `public_html` from the current folder to `/var/www/html` on the ***running*** container. It is where ***Apache*** serves the content from & allows for *realtime* change updates.
69
+
70
+
- Using `-p 8080:80/tcp`
71
+
72
+
To map port **8080** on the ***Host*** machine to port **80** on the ***Container*** using the ***bridge network***.
0 commit comments