1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

docker起動時にメモリ、CPUのリソース利用を制限する

Posted at

メモリ、CPU、GPU に対する実行時オプションの記載を参考にしています。

以下のようにdockerを利用する際、

docker run -p 6080:80 --shm-size=512m seigott/tetris_docker:latest

1GB memory, 1GB swap, 1CPUに制約する場合は、-memory="1g" --memory-swap="1g" --cpus="1"を指定すればよさそう

docker run -p 6080:80 --memory="1g" --memory-swap="1g" --cpus="1"  --shm-size=512m seigott/tetris_docker:latest

動作確認がそこまでできているわけではないが、、

#参考
メモリ、CPU、GPU に対する実行時オプション

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?