Ask Your Question
0

What steps are necessary to get docker running in Fedora 22 Server?

asked 2015-10-23 15:37:30 -0500

dcrdev gravatar image

I'm building a new server with Fedora 22-SE, I've just enabled the docker service and I'm getting lots of errors in the system journal - mostly related to the firewall.

Docker came preinstalled and all I did to activate it was enable the service, are there any additional packages or configuration steps necessary for docker to play nice with the firewall?

Here is my log:

21:14 Scope libcontainer-6069-systemd-test-default-dependencies.scope has no PIDs. Refusing. systemd
 21:14 2015-10-23 21:14:39 ERROR: COMMAND_FAILED: '/sbin/iptables -w -t nat -C OUTPUT -m addrtype --dst-type LOCAL -j DOCKER ! --dst 127.0.0.0/8' failed: iptables: No chain/target/match by that name. firewalld
 21:14 2015-10-23 21:14:39 ERROR: COMMAND_FAILED: '/sbin/iptables -w -t nat -C PREROUTING -m addrtype --dst-type LOCAL -j DOCKER' failed: iptables: No chain/target/match by that name. firewalld
 21:14 2015-10-23 21:14:39 ERROR: COMMAND_FAILED: '/sbin/iptables -w -t nat -n -L DOCKER' failed: iptables: No chain/target/match by that name. firewalld
 21:14 2015-10-23 21:14:39 ERROR: COMMAND_FAILED: '/sbin/iptables -w -D FORWARD -i docker0 -o docker0 -j DROP' failed: iptables: Bad rule (does a matching rule exist in that chain?). firewalld
 21:14 2015-10-23 21:14:39 ERROR: COMMAND_FAILED: '/sbin/iptables -w -t nat -D OUTPUT' failed: iptables: Bad rule (does a matching rule exist in that chain?). firewalld
 21:14 2015-10-23 21:14:39 ERROR: COMMAND_FAILED: '/sbin/iptables -w -t nat -D PREROUTING' failed: iptables: Bad rule (does a matching rule exist in that chain?). firewalld
 21:14 2015-10-23 21:14:39 ERROR: COMMAND_FAILED: '/sbin/iptables -w -t nat -D OUTPUT -m addrtype --dst-type LOCAL -j DOCKER' failed: iptables: No chain/target/match by that name. firewalld
 21:14 Device dev-disk-by\x2duuid-29b50e10\x2d3913\x2d4a4d\x2da746\x2d6b5d4fa1f63d.device appeared twice with different sysfs paths /sys/devices/virtual/block/loop0 and /sys/devices/virtual/block/dm-4 systemd 3 
 21:14 Failed to start Docker Storage Setup. systemd

There are 1 or 2 other storage related errors in there as well, which I have no idea about either. I've tried searching the for each of these errors and have been unable to find any resolution.

Can anyone help?

Thanks,

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2015-10-23 18:43:01 -0500

andmalc gravatar image

I believe you have to setup an LVM thin pool for image storage:

https://access.redhat.com/articles/14...

edit flag offensive delete link more

Comments

Thanks I didn't have enough free space in my volume group and that's why I was getting the storage errors. The firewall related errors are still there though.

dcrdev gravatar imagedcrdev ( 2015-10-23 19:11:10 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2015-10-23 15:37:30 -0500

Seen: 1,492 times

Last updated: Oct 23 '15