mlcommons / mlcommons/mlcube

running hello_world example in windows: docker: Error response from daemon: invalid mode: \mlperf\mlbox_11062020\box_examples\hello_world\workspace/chats

Open
#140 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
160
Forks
31
PR merge metrics
No merged PRs in 30d

Description

while running hello_world example in windows, getting the following errors:
mlcommons versions installed:
mlcommons-box 0.2.3
mlcommons-box-docker 0.2.3
mlcommons-box-singularity 0.2.3
mlcommons-box-ssh 0.2.3
mlspeclib 1.0.0

docker run --rm --net=host --privileged=true --volume C:\mlperf\mlbox_11062020\box_examples\hello_world\workspace/names:/mlbox_io0/C:\mlperf\mlbox_11062020\box_examples\hello_world\workspace/names --volume C:\mlperf\mlbox_11062020\box_examples\hello_world\workspace/chats:/mlbox_io1/C:\mlperf\mlbox_11062020\box_examples\hello_world\workspace/chats mlperf/mlbox_hello_world:0.0.1 hello --name=/mlbox_io0/C:\mlperf\mlbox_11062020\box_examples\hello_world\workspace/names/alice.txt --chat=/mlbox_io1/C:\mlperf\mlbox_11062020\box_examples\hello_world\workspace/chats/chat_with_alice.txt
**docker: Error response from daemon: invalid mode: \mlperf\mlbox_11062020\box_examples\hello_world\workspace/chats.
**
See 'docker run --help'.
Traceback (most recent call last):
File "c:\programdata\anaconda3\envs\mlbox_11062020\lib\runpy.py", line 193, in _run_module_as_main
"main", mod_spec)
File "c:\programdata\anaconda3\envs\mlbox_11062020\lib\runpy.py", line 85, in run_code
exec(code, run_globals)
File "C:\ProgramData\Anaconda3\envs\mlbox_11062020\Scripts\mlcommons_box_docker.exe_main
.py", line 7, in
File "c:\programdata\anaconda3\envs\mlbox_11062020\lib\site-packages\click\core.py", line 829, in call
return self.main(*args, **kwargs)
File "c:\programdata\anaconda3\envs\mlbox_11062020\lib\site-packages\click\core.py", line 782, in main
rv = self.invoke(ctx)
File "c:\programdata\anaconda3\envs\mlbox_11062020\lib\site-packages\click\core.py", line 1259, in invoke
return process_result(sub_ctx.command.invoke(sub_ctx))
File "c:\programdata\anaconda3\envs\mlbox_11062020\lib\site-packages\click\core.py", line 1066, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "c:\programdata\anaconda3\envs\mlbox_11062020\lib\site-packages\click\core.py", line 610, in invoke
return callback(*args, **kwargs)
File "c:\programdata\anaconda3\envs\mlbox_11062020\lib\site-packages\mlcommons_box_docker_main
.py", line 45, in run
runner.run()
File "c:\programdata\anaconda3\envs\mlbox_11062020\lib\site-packages\mlcommons_box_docker\docker_run.py", line 72, in run
self._run_or_die(cmd)
File "c:\programdata\anaconda3\envs\mlbox_11062020\lib\site-packages\mlcommons_box_docker\docker_run.py", line 117, in _run_or_die
raise RuntimeError('Command failed: {}'.format(cmd))
RuntimeError: Command failed: docker run --rm --net=host --privileged=true --volume C:\mlperf\mlbox_11062020\box_examples\hello_world\workspace/names:/mlbox_io0/C:\mlperf\mlbox_11062020\box_examples\hello_world\workspace/names --volume C:\mlperf\mlbox_11062020\box_examples\hello_world\workspace/chats:/mlbox_io1/C:\mlperf\mlbox_11062020\box_examples\hello_world\workspace/chats mlperf/mlbox_hello_world:0.0.1 hello --name=/mlbox_io0/C:\mlperf\mlbox_11062020\box_examples\hello_world\workspace/names/alice.txt --chat=/mlbox_io1/C:\mlperf\mlbox_11062020\box_examples\hello_world\workspace/chats/chat_with_alice.txt

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the Windows hello_world reproduction and inspect mlcommons_box_docker/docker_run.py, especially the command construction shown in the traceback. Check how the workspace paths become Docker volume arguments; done means the example can run on Windows without Docker reporting an invalid mode.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker, python
Domain
devops
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.