1.3. fejezet, CentOS

Firewall

Using Firewalls

CentOS 7

sudo system-config-firewall-tui

CentOS 6

firewall-cmd --get-active-zones
firewall-cmd --zone=public --add-port=80/tcp --permanent
firewall-cmd --reload

Docker

Install

sudo yum install docker

Add group and user to group

sudo groupadd docker
sudo usermod -aG docker $(whoami)

Autostart after reboot

sudo systemctl enable docker

Reboot after setup!

Backup data volume

docker ps -a
docker run --rm --volumes-from 9d7edef4dcee -v $(pwd):/backup jariasl/tuleap tar czvf /backup/backup.tgz /data

Restore data volume

docker load -i mynewimage.tgz
sudo setenforce 0 ##(SELinux - share könyvtár olvasási joghoz kell!)
docker run -it --volumes-from e799ba40fbb4 -v tuleap-data:/data -v $(pwd)/shared:/backup mynewimage tar -xvzf /backup/backup.tgz

See disusion on stackoverflow.com