mem_limitを使いたかった。
ver 3.* では使えないので、2.2仕様に書き換えて docker-compose build
Traceback (most recent call last):
File "/usr/bin/docker-compose", line 11, in <module>
load_entry_point('docker-compose==1.17.1', 'console_scripts', 'docker-compose')()
File "/usr/lib/python2.7/dist-packages/compose/cli/main.py", line 68, in main
command()
File "/usr/lib/python2.7/dist-packages/compose/cli/main.py", line 121, in perform_command
handler(command, command_options)
File "/usr/lib/python2.7/dist-packages/compose/cli/main.py", line 249, in build
build_args=build_args)
File "/usr/lib/python2.7/dist-packages/compose/project.py", line 343, in build
service.build(no_cache, pull, force_rm, build_args)
File "/usr/lib/python2.7/dist-packages/compose/service.py", line 923, in build
shmsize=parse_bytes(build_opts.get('shm_size')) if build_opts.get('shm_size') else None,
TypeError: build() got an unexpected keyword argument 'stream'
- ぱいそん の えらー が あらわれた!
解決方法
最新のdockerで出るエラーの模様。
pip install 'docker<3.0'
でとりあえず治ります。
参考