Skip to content

Instantly share code, notes, and snippets.

View indzi's full-sized avatar

Indranil SInha indzi

  • Crypto Currency Trading
  • Singapore
View GitHub Profile
#### 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
```
#### 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
```
# 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)