docker
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| docker [2018/07/24 14:46] – created k2patel | docker [2020/08/10 02:35] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== Docker ====== | ====== Docker ====== | ||
| + | |||
| + | ==== Attach / Dettach ==== | ||
| + | |||
| + | <code bash> | ||
| + | docker attach < | ||
| + | </ | ||
| + | |||
| + | == Prevent termination while < | ||
| + | by changing sig proxy it can be prevented. | ||
| + | <code bash> | ||
| + | docker attach --sig-proxy=false < | ||
| + | </ | ||
| + | |||
| + | |||
| + | ==== Host Firewall ==== | ||
| Setting up firewall port forwarding and exposing service to world or specific IP. | Setting up firewall port forwarding and exposing service to world or specific IP. | ||
| <code bash> | <code bash> | ||
| + | # Forwarding port traffic | ||
| firewall-cmd --permanent --zone=public --add-forward-port=port=3030: | firewall-cmd --permanent --zone=public --add-forward-port=port=3030: | ||
| + | # Allowing access from specific host | ||
| firewall-cmd --permanent --zone=public --add-rich-rule=" | firewall-cmd --permanent --zone=public --add-rich-rule=" | ||
| family=" | family=" | ||
docker.1532443576.txt.gz · Last modified: 2020/08/10 02:28 (external edit)
