User Tools

Site Tools



Attach / Dettach

docker attach <id|name>
Prevent termination while <Ctrl> + C in term

by changing sig proxy it can be prevented.

docker attach --sig-proxy=false <id|name>

Host Firewall

Setting up firewall port forwarding and exposing service to world or specific IP.

# 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="" \
port protocol="tcp" port="3030" accept"
docker.txt · Last modified: 2020/08/10 02:35 (external edit)