usnistgov / AusteniteCalculator

Software and GUI for uncertainty quantification of austenite phase fraction
Other
1 stars 0 forks source link

Errors with loading a volume #12

Closed creuzige closed 2 years ago

creuzige commented 2 years ago

I tried to follow the instructions on the readme for adding a volume, and got the errors below. Any suggestions on what went wrong?

(base) PN118888:AusteniteCalculator creuzige$ docker volume create ACvol ACvol (base) PN118888:AusteniteCalculator creuzige$ docker build -t austenite_calculator . [+] Building 33.2s (16/16) FINISHED

(base) PN118888:AusteniteCalculator creuzige$ docker run -d \ --name container \ -- mount source ACvol,target=. docker: invalid reference format. See 'docker run --help'.

(base) PN118888:AusteniteCalculator creuzige$ docker run -d --name container -- mount source ACvol,target=. Unable to find image 'mount:latest' locally docker: Error response from daemon: pull access denied for mount, repository does not exist or may require 'docker login': denied: requested access to the resource is denied. See 'docker run --help'.

(base) PN118888:AusteniteCalculator creuzige$ docker run -d --name container -- mount source ACvol Unable to find image 'mount:latest' locally docker: Error response from daemon: pull access denied for mount, repository does not exist or may require 'docker login': denied: requested access to the resource is denied. See 'docker run --help'.

maxgarman commented 2 years ago

It looks like you made a few mistakes while running the run command. It should be something along the lines of "docker run -d \ --name austenite_calculator \ --mount source=ACvol,target=/app \ nginx:latest"

here is the link to the doc page for volumes: https://docs.docker.com/storage/volumes/ it may help to do it during the meeting today? Sorry if this was from confusion on my end.

creuzige commented 2 years ago

Gave that a try, here's the output:

(base) PN118888:AusteniteCalculator creuzige$ docker run -d \ --name austenite_calculator \ --mount source=ACvol,target=/app \ nginx:latest
docker: invalid reference format.

Sounds fine to try and work on it at the meeting.