0
0

More than 3 years have passed since last update.

vscodeでDockerを使うときに、Volumeを速くする。

Posted at

背景

Dockerのあるファイルをcloneして始める時に、毎回reopen in containerで時間がかかってしまう。なんとかしたいと思い、探していたところ、「Docker Mac Volume 遅い」でググると、色々出てきたので、そこに出てきた記事を参考に解決しました。

方法

$ gem install docker-sync

その後、docker-sync.ymlファイルを作る。

version: '2'

syncs:
  document-root:
    sync_strategy: rsync
    notify_terminal: true
    sync_host_ip: 'auto'
    sync_host_port: 10872
    sync_excludes: [ '.git', '.idea', 'vendor', 'docker', '*.yml' ]
    sync_args: '-v'
    src: ./
    sync_userid: '33'

これで、reopen containerをvscodeで再び行ったところ、かなり速度が改善されていました。

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