Open zeigerpuppy opened 6 years ago
/cc @amshinde @devimc I think. Also, recently related would be https://github.com/kata-containers/kata-containers/issues/21 and its friends.
@zeigerpuppy Do you see this issue with kata-containers ? See installation instructions here https://github.com/kata-containers/documentation/blob/master/Developer-Guide.md
@amshinde, I am a bit reluctant to layer on kata-containers at the moment because my setup is performing quite well. I'm also using this on a production server... so will need to wait until our fallback server is configured before changing config too much! I'll report back once I have a chance to test
Description of problem
postgres uses the kernel shared memory achitecture
shm
. It looks like clear containers don't properly initialise this value, causing an error like:This may be related to https://github.com/clearcontainers/runtime/issues/18
Expected result
Postgres containers should run without modification.
Actual result
When postgres starts it expects to have access to the
/dev/shm
device. I presume that the default has been set to`--ipc="none"
. See docker docs.Fix
I started the container with these options and it worked, seems to confirm that the
--ipc
option is the cause:Config
cc-collect-data.sh
output (running on Debian 9 without systemd and ZFS 0.7.7 zvol storage as block device for LVM thin provisioning):Running
cc-collect-data.sh
version3.0.23 (commit 64d2226)
at2018-04-24.15:21:51.686666369+1000
.Runtime is
/usr/bin/cc-runtime
.cc-env
Output of "
/usr/bin/cc-runtime cc-env
":Runtime config files
Runtime default config files
Runtime config file contents
Output of "
cat "/etc/clear-containers/configuration.toml"
":Output of "
cat "/usr/share/defaults/clear-containers/configuration.toml"
":Agent
version:
Logfiles
Runtime logs
No recent runtime problems found in system journal.
Proxy logs
No recent proxy problems found in system journal.
Shim logs
No recent shim problems found in system journal.
Container manager details
Have
docker
Docker
Output of "
docker version
":Output of "
docker info
":Output of "
systemctl show docker
":No
kubectl
Packages
Have
dpkg
Output of "dpkg -l|egrep "(cc-oci-runtime|cc-proxy|cc-runtime|cc-shim|kata-proxy|kata-runtime|kata-shim|clear-containers-image|linux-container|qemu-lite|qemu-system-x86)"
":Have
rpm
Output of "rpm -qa|egrep "(cc-oci-runtime|cc-proxy|cc-runtime|cc-shim|kata-proxy|kata-runtime|kata-shim|clear-containers-image|linux-container|qemu-lite|qemu-system-x86)"
":