This is the default name of the docker container. That's why I reported
it here. For me it is a problem with the install script. It shouldn't
fail to install within a default docker container.

regarding b) how do I make docker select that automatically? I wasn't
able to find any way to install postfix silently except by the commands
and environment variables listed above.


{quote}
Fqdn's are a defined standard, and if your name would be like one it should 
work.
Never the less we try to catch and handle some common issues.
It might be worth for your to look at your hostname in general (report your 
full name here please) and the code that the install runs you can find in 
/var/lib/dpkg/info/postfix.postinst - check the function myfqdn for that.
If therein is an issue that could be improved to support your kind of hostname 
better that might be worth a talk.
{quote}

I already provided that. The hostname is just "cc1a572af0dc" without
domain. It is set by docker. I don't know how I would influence that at
build time.

I also provided where in the post install script it fails and why. It fails 
within that function when you try to work around the missing domain part in the 
fqdn by appending the "search" part from /etc/resolv.conf. That part generates 
an invalid host name and writes that into the postfix configuration and than 
tries to start postfix using it which makes dpkg fail.
THe resolv.conf is also written by docker and therefore also outside of my 
control.


And here is an asciinema recording, maybe that helps to show what the problem 
is:
* https://asciinema.org/a/MszFQIxhFi5l5Agh8EQAGC26n

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1906970

Title:
  dpkg hook hostname error

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/postfix/+bug/1906970/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to