-
-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
On CentOS 8 Docker internal network needs to be set as trusted network for firewalld #300
Comments
Thanks for doing this research! It would surely be helpful for adding CentOS 8 support! For now, I'm worried about Docker CE not being available for CentOS 8 and needing to resort to hacks to install it. I guess that's how you did it? I'm guessing that once this gets solved upstream in a proper manner, it may integrate with firewalld more nicely and we may not need to mark Docker interfaces as trusted.. Let's see.. Until the Docker installation issue is solved upstream, I'm refraining from doing any playbook fixes. |
I used the docker-ce package for el7 from the docker repo and dnf needs the https://linuxconfig.org/how-to-install-docker-in-rhel-8
Furthermore I noticed that docker-python is not available in the repos and needs to be added with pip. |
|
I am not sure anymore. Probably sth like |
Just writing this down in case anybody gets redirected here: I came across this issue too, but on CentOS 7 and with the new For this to work and not get the |
Should help with #300 (Github Issue).
Had similar issues with docker-python on CentOS 7 with docker-python, there are no packages available. I needed to install python-pip from epel then pip install docker in - name: Ensure yum packages are installed
yum:
name:
- "{{ 'python3-pip' if ansible_python_version is version('3', '>=') else 'python2-pip'}}"
- "{{ matrix_ntpd_package }}"
- fuse
state: latest
update_cache: yes
enablerepo: epel
- name: Ensure pip docker module is installed
pip:
name: "{{ 'docker' if ansible_python_version is version('2.7', '>=') else 'docker-py'}}" |
It's probably better for people installing on CentOS 8 to:
# Disable Docker installation. We've done it manually.
matrix_docker_installation_enabled: false
# Switch from ntpd to Chrony
matrix_ntpd_package: chrony
matrix_ntpd_service: chronyd
|
has anyone tried to replace docker in centos8 with better supported podman & podman-compose? E: Seems like issue I was looking for was Issue 64 |
podman's networking is completely different.
|
This keeps it in line with https://download.docker.com/linux/centos/docker-ce.repo Whether or not Docker works well on CentOS 8 for our purposes hasn't been verified yet. Related to #300
Since d556aa9, our My limited testing with Docker 19.03.04 on CentOS 8 (for other things, not the playbook) shows that networking works fine without changing
I'm guessing the other things ( |
I've managed to install |
Not hardcoding 'CentOS' and using the OS family ('RedHat') instead, we now behave better on Rockylinux and AlmaLinux, etc. With that said, we may or may not fully support CentOS/Rockylinux/AlmaLinux v8 yet. Certain things were improved in #300. v8 support is discussed here: #300 Certain things (firewalld?) may still be problematic. This patch does not try to address those. If the remaining issues are confirmed to be fixed in the future, we can mark v8 as supported.
Can this issue be closed then? And should CentOS 8 be marked as working in https://github.com/spantaleev/matrix-docker-ansible-deploy/blob/master/docs/prerequisites.md ? |
I've just tested Rocky Linux v9 and it seems to work. I suppose the Docker situation (spantaleev#300) on RHEL v8 has improved, so it probably works too. I see no reason AlmaLinux and other RHEL derivatives wouldn't work, but I have neither tested them, nor have confirmation from others about it. It's mostly a matter of us being able to install: - Docker, via https://github.com/geerlingguy/ansible-role-docker which seems to support various distros - a few other packages (systemd-timesyncd, etc). The list of supported distros has been reordered alphabetically. I've heard reports of SUSE Linux working well too, so it may also be added if confirmed again. Closes spantaleev#300
I've just tested Rocky Linux v9 and it seems to work. I suppose the Docker situation (spantaleev#300) on RHEL v8 has improved, so it probably works too. I see no reason AlmaLinux and other RHEL derivatives wouldn't work, but I have neither tested them, nor have confirmation from others about it. It's mostly a matter of us being able to install: - Docker, via https://github.com/geerlingguy/ansible-role-docker which seems to support various distros - a few other packages (systemd-timesyncd, etc). The list of supported distros has been reordered alphabetically. I've heard reports of SUSE Linux working well too, so it may also be added if confirmed again. Closes spantaleev#300
I just set up on CentOS 8 amongst other minor problems like docker-ce install, chronyd instead of ntpd, user 991 not beeing available on a plain VM I discovered that synapse cannot connect to the postgres container on the docker internal network 172.18.0.0
According to moby/moby#32138 and stackoverflow I had to configure interface docker0 for firewalld's trused zone
The text was updated successfully, but these errors were encountered: