Join 1M+ other developers and:
- Get help and share knowledge in Q&A
- Subscribe to topics of interest
- Get courses & tools that help you grow as a developer or small business owner
How to add swap to docker?
I am using Ubuntu Docker 17.12.0ce on 16.04 and have php app running.
It has 2 containers:
Problem is that mysql container is frequently crushing. Solution is to add swap space.
But most of explanation are for “regular” server not dockerized.
I do not have
also i can “get in” apache using
docker exec -ti prj_apache_1 bash
docker exec -ti prj_mysql_1 bash
so my question inside which containers do i run this commands:
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.×