Answer the question
In order to leave comments, you need to log in
Why is apache2 not installed in lxc?
I installed the lxc package, created a container sudo lxc-create -n apache2 -t altlinux, it works, starts, I can log in with lxc-attach. Decided to install apache2 there.
I went:
sudo lxc-attach -n apache2 I
noticed this during installation:
Running /usr/lib/rpm/posttrans-filetriggers
mktemp: failed to create file via template '/tmp/.private/root/alternatives-update.avail.XXXXXX' : No such file or directory
/usr/lib/rpm/alternatives.filetrigger failed
mandb: iconv_open ("UTF-8//IGNORE", "ISO-8859-1"): Invalid argument
error: execution of /usr/lib/ rpm/posttrans-filetriggers scriptlet from (null)-(null)-(null) failed, exit status 1
Done.
On startup it looks like this:
httpd2[306]: /sbin/limited: line 160: /usr/sbin/httpd2: No such file or directory
apache2 apachectl2[282]: /sbin/limited: line 160: /usr/sbin/httpd2: No such file or directory
Any idea what's going on?
Answer the question
In order to leave comments, you need to log in
It turns out that it was necessary to enter lxc not just lxc-attach, but with the --clear-env
lxc-attach --clear-env -n mycontainer parameter
After that, apache2 was installed correctly and started.
Here is the link that helped solve the problem
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question