LoginSignup
6
6

More than 5 years have passed since last update.

boot2dockerでulimitを変更する

Last updated at Posted at 2014-07-16

docker restartすると戻っちゃうんですが誰か永続化する方法知りませんか?

追記(2014/07/17)

コメント or 記事を書いてくださいました。

追加終わり。

起動

boot2docker up

ログイン

boot2docker ssh

入ったら以下のコマンドを実行

sudo /etc/init.d/docker stop
sudo sh -c "ulimit -n 65535 && exec su $LOGNAME"
sudo /etc/init.d/docker start

確認(Mac側)

docker run ubuntu sh -c 'ulimit -n'

macの方で65535と表示されていたら終了。

6
6
4

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
6
6