Why can’t you stop buying 618?From the technical dimension to explore>>>
Operation
docker run –it –v /dataset:/dataset –v /inference:/inference –v /result:/result floydhub/pytorch:0.4.0-py2.29 /inference/inference.sh
Error report
docker: invalid reference format.
See 'docker run --help'.
It turns out that… It turns out that… The -
copied from the website should be -
So this tells us that as publishers, we must use & lt; code>
tags wrap up codes, commands and so on, and please don't let full angle symbols come out to harm people. As a user, I have to be more careful
It's just.. Irritating! Waste your life! Bullying novices
Culprit: http://challenge.xfyun.cn/aicompetition/techDetail
After replacing the normal half width symbol with -
, the execution result on MAC is as follows:
docker: Error response from daemon: Mounts denied:
The paths /result and /inference and /dataset
are not shared from OS X and are not known to Docker.
You can configure shared paths from Docker -> Preferences... -> File Sharing.
See https://docs.docker.com/docker-for-mac/osxfs/#namespaces for more info.
That is, the root directory /
is not shared. You can add these subdirectories to the shared directory (select "preferences" on the docker icon and add them under the "file sharing" tab). Or change the path like me:
docker run -it -v ~/dataset:/dataset -v ~/inference:/inference -v ~/result:/result floydhub/pytorch:0.4.0-py2.29 /inference/inference.sh