Jan 22, 2015

docker container could not start on Fedora 21 because of failing to write the memory limits

Today I restarted my Fedora 21 after updates. But the mariadb-Container
could  not be started.

I just did a docker start mariadb which faulted with:
FATA[0002] Error response from daemon: Cannot start container 93ae91947b95944769c43a7665e4158d7f2becf4a137427cff8fd17a61485bf6: write /sys/fs/cgroup/memory/system.slice/docker-93ae91947b95944769c43a7665e4158d7f2becf4a137427cff8fd17a61485bf6.scope/memory.memsw.limit_in_bytes: invalid argument

Because my container was already runnig since some time, I rebuilt the
container and started again, but the message appeared again. My start command was:

docker run --name="mariadb" --hostname="mariadb" --dns=X.X.X.X --dns-search=example.com -c 100 -m 1g -d -P -v /home/ewer/prod/docker/maria_db:/data/mysql ewer/mariadb

After removing the "-m 1g" option, the container could be started again.

There must have been some change during one of the last updates,
because the container could be started on Fedora 21 with the memory limit.