User Tools

Site Tools


docker

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

docker [2018/07/24 17:28]
k2patel [Host Firewall]
docker [2020/08/10 02:35]
Line 1: Line 1:
-====== Docker ====== 
  
-==== Attach / Dettach ==== 
- 
-<code bash> 
-docker attach <​id|name>​ 
-</​code>​ 
- 
-== Prevent termination while <​Ctrl>​ + C in term == 
-by changing sig proxy it can be prevented. 
-<code bash> 
-docker attach --sig-proxy=false <​id|name>​ 
-</​code>​ 
- 
- 
-==== Host Firewall ==== 
- 
-Setting up firewall port forwarding and exposing service to world or specific IP. 
- 
-<code bash> 
-# Forwarding port traffic 
-firewall-cmd --permanent --zone=public --add-forward-port=port=3030:​proto=tcp:​toport=3030 
- 
-# Allowing access from specific host 
-firewall-cmd --permanent --zone=public --add-rich-rule="​rule ​ 
-family="​ipv4"​ \ 
-source address="​192.168.1.5/​32"​ \ 
-port protocol="​tcp"​ port="​3030"​ accept"​ 
-</​code>​ 
docker.txt ยท Last modified: 2020/08/10 02:35 (external edit)