A workaround to change shared memory size for Docker containers in AWS ECS
2017-12-01 11:47
1426 查看
Issue
Because of not supporting to specify the following docker run parameter, containers in ECS cannot resize the shared memory.
--shm-size
Solution
Here is a workaround:
1. In order to operate devices with a container, execute docker run command with "--priviledge=true"
2. Run the following scripts with a contianer,
References
https://bugs.chromium.org/p/chromium/issues/detail?id=519952#c6
https://github.com/aws/amazon-ecs-agent/issues/787
Because of not supporting to specify the following docker run parameter, containers in ECS cannot resize the shared memory.
--shm-size
Solution
Here is a workaround:
1. In order to operate devices with a container, execute docker run command with "--priviledge=true"
2. Run the following scripts with a contianer,
shm_dir=/dev/shm umount $shm_dir mount -t tmpfs -o rw,nosuid,nodev,noexec,relatime,size=<size, e.g. 500M, 1G> shm $shm_dir
References
https://bugs.chromium.org/p/chromium/issues/detail?id=519952#c6
https://github.com/aws/amazon-ecs-agent/issues/787
相关文章推荐
- Downloading files from a server to client, using ASP.Net, when file size is too big for MemoryStream using Generic Handlers (ashx)
- 如何调整Dreamhost主机PHP上传尺寸的限制/How to change the maximal size of uploading in your Dreamhost
- You probably tried to upload too large file. Please refer to documentation for ways to workaround this limit.
- How to change credentials for SVN repository in Eclipse?
- git tip: How to undo an uncommitted change/deletion for a specific file in your working directory
- How to Change the Icon for a File Type in Windows 7 and Vista(转)
- Around the World in 60 Days: Getting Deep Speech to Work in Mandarin
- How to increase Memory usage for an App in Windows Phone
- Oracle错误:ORA-27121: unable to determine size of shared memory segment
- Question 20: Which allocator member function do standard containers use to acquire storage for their elements in C++?
- How to Change the Size of a Box-Plot Label in MATLAB
- HOWTO_Change Default Boot Order for Grub in Ubuntu
- Oracle错误:ORA-27121: unable to determine size of shared memory segment
- Relay 客户端 rose命令行启动错误 "unable to create shared memory for shutdown channel"
- C#: Writing a CookieContainer to Disk and Loading Back In For Use
- How to configure locales to Unicode in a Docker Ubuntu 14.04 container?
- How to Set size for picture in datadrigview
- PHP message: PHP Warning: include(): Unable to allocate memory for pool. in
- 《How to Use the TimeDistributed Layer for Long Short-Term Memory Networks in Python》学习笔记