This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #### Memory Constraints | |
| You can also set [memory constraints](https://docs.docker.com/engine/reference/run/#/user-memory-constraints) on Docker: | |
| ``` | |
| docker run -it -m 300M ubuntu:14.04 /bin/bash | |
| ``` |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #### Capabilities | |
| Linux capabilities can be set by using `cap-add` and `cap-drop`. See <https://docs.docker.com/engine/reference/run/#/runtime-privilege-and-linux-capabilities> for details. This should be used for greater security. | |
| To mount a FUSE based filesystem, you need to combine both --cap-add and --device: | |
| ``` | |
| docker run --rm -it --cap-add SYS_ADMIN --device /dev/fuse sshfs | |
| ``` |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Docker Cheat Sheet | |
| **Want to improve this cheat sheet? See the [Contributing](#contributing) section!** | |
| ## Table of Contents | |
| * [Why Docker](#why-docker) | |
| * [Prerequisites](#prerequisites) | |
| * [Installation](#installation) | |
| * [Containers](#containers) |
OlderNewer