Making progress running MTA container - Q re ports
by Philip Rhoades
People,
Starting my MTA with:
podman run --rm -d -h pricom.com.au \
-v /home:/home \
-p 127.0.0.1:25:25 \
-p 127.0.0.1:143:143 \
-p 127.0.0.1:587:587 \
-p 127.0.0.1:993:993 \
-p 127.0.0.1:995:995 \
--name indimail \
`podman images | grep indimail | awk '{ print $3 }'` \
indimail
- works happily and while mail delivery is working fine within the
container, the ports are not accessible from other computers ie:
I have opened ports on the host using iptables and when using nmap on
localhost get:
Starting Nmap 7.80 ( https://nmap.org ) at 2020-03-27 13:47 AEDT
Nmap scan report for localhost (127.0.0.1)
Host is up (0.0000050s latency).
rDNS record for 127.0.0.1: localhost.localdomain
Not shown: 993 closed ports
PORT STATE SERVICE
22/tcp open ssh
25/tcp filtered smtp
143/tcp filtered imap
587/tcp filtered submission
631/tcp open ipp
993/tcp filtered imaps
995/tcp filtered pop3s
- which doesn't look promising and from another machine on the LAN I
get:
Starting Nmap 7.80 ( https://nmap.org ) at 2020-03-27 13:44 AEDT
Nmap scan report for phil (192.168.1.20)
Host is up (0.00019s latency).
rDNS record for 192.168.1.20: phil.pricom.com.au
Not shown: 994 filtered ports
PORT STATE SERVICE
22/tcp open ssh
25/tcp closed smtp
143/tcp closed imap
587/tcp closed submission
993/tcp closed imaps
995/tcp closed pop3s
- so I must still missing something about linking container ports to the
same host ports . .
Suggestions?
Thanks,
Phil.
--
Philip Rhoades
PO Box 896
Cowra NSW 2794
Australia
E-mail: phil(a)pricom.com.au
4 years, 8 months
libpod - python integration testing
by Damon Hatchett
Hi,
I am interested in running python integration tests and/or
anything particularly useful for the group. I checked out apiv2: test using
docker-py integration tests #5386
<https://github.com/containers/libpod/issues/5386> and am trying to
replicate the docker API tests - suitable for podman. Dont know if someone
else all over this or not. ATM I am just tying to replicate
ListContainersTest (docker-py
<https://github.com/docker/docker-py>/api_container_test.py...
"import docker"..."import podman") a simple container list test, but
breaking here (leads almost to next question, any heads up on status of
Python API appreciated). eg
api_container_test.py:
>>> import os
>>> import re
>>> import signal
>>> import tempfile
>>> import threading
>>> from datetime import datetime
>>>
>>> import pytest
>>> import requests
>>> import six
>>> import docker
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ModuleNotFoundError: No module named 'docker'
>>> import podman
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ModuleNotFoundError: No module named 'podman'
>>>
Cheers!
--
DAMON HATCHETT
CONSULTANT
Red Hat ACT <https://www.redhat.com/>
Level 11, Canberra House
40 Marcus Clarke Street
dhatchet(a)redhat.com M: +61422276484
<https://red.ht/sig>
@RedHat <https://twitter.com/redhat> Red Hat
<https://www.linkedin.com/company/red-hat> Red Hat
<https://www.facebook.com/RedHatInc>
4 years, 8 months
Error: timed out waiting for file /var/run/libpod/exits/. . .: internal libpod error
by Philip Rhoades
People,
I am making progress with the Podman MTA mentioned in the previous
emails (thanks for the help!) - however, I have noticed these errors a
few times as I fix / change things and rebuild the image and container:
# podman stop indimail
2020-03-24T22:23:00.000955080Z: error opening file
'/run/user/0/crun/e75c80ad2b9dc7a79110614459158d1e48cda2c7cabccad64570ea1f91532a24/status':
No such file or directory
Error: timed out waiting for file
/var/run/libpod/exits/e75c80ad2b9dc7a79110614459158d1e48cda2c7cabccad64570ea1f91532a24:
internal libpod error
- I am not sure but I think on some of the occasions the stop command
has not worked and I have had use a more drastic approach . .
What should I be looking for to address this issue?
Thanks,
Phil.
--
Philip Rhoades
PO Box 896
Cowra NSW 2794
Australia
E-mail: phil(a)pricom.com.au
4 years, 8 months
Error #2: Error: image is in use by a container - NOT!
by Philip Rhoades
People,
I have seen this a few times too:
# podman rmi 77d74c539a60 268b4206e2e9
A container associated with containers/storage, i.e. via Buildah, CRI-O,
etc., may be associated with this image: 77d74c539a60
Untagged: docker.io/cprogrammer/indimail:fc31
Deleted:
268b4206e2e99921f598e08de1969c066282f6b4c41047efa6279303c669777e
Error: image is in use by a container
# podman ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
What should I look for in this case?
Thanks,
Phil.
--
Philip Rhoades
PO Box 896
Cowra NSW 2794
Australia
E-mail: phil(a)pricom.com.au
4 years, 8 months
Planned outage of rdoproject.org/github-check: 2020-03-24 13:00 UTC
by Tristan Cacqueray
Hello folks,
We plan to move all the control plane instances to a new cloud provided
by Vexxhost on 2020-03-24 13:00 UTC.
Major services interruption is expected during that day, including:
* Zuul CI not running jobs for github or opendev.
Let us know if you prefer a different time.
Regards,
-Tristan, on behalf of the Software Factory Operation Team
4 years, 8 months
2 Questions re a Container having access to the Host's file system
by Philip Rhoades
People,
I want to have a MTA running from a container but is it possible for the
containerised MTA:
1. to deliver mails to users on the host's file system dir (eg
/home/user/Maildir)?
2. to have access to the host's:
/etc/passwd
/etc/shadow
/etc/group
/etc/gshadow
files for users who are logging in to the host to look at their mails?
Thanks,
Phil.
--
Philip Rhoades
PO Box 896
Cowra NSW 2794
Australia
E-mail: phil(a)pricom.com.au
4 years, 8 months
Anyone got ZeroTier working in podman containers?
by Philip Rhoades
People,
I am just starting to make real use of podman containers but, for one
particular exercise, it would be convenient if I could use zerotier in
one of the containers but I get:
[root@1c15d54fa274 /]# zerotier-cli info
zerotier-cli: missing port and zerotier-one.port not found in
/var/lib/zerotier-one
- it works for other, non-container, devices - as well as VMs on KVM.
Thanks,
Phil.
--
Philip Rhoades
PO Box 896
Cowra NSW 2794
Australia
E-mail: phil(a)pricom.com.au
4 years, 8 months