I´ve created an Dockerfile with an image an from that image a container. Now I need to mount a directory from my Windows PC (it contains severall pictures) into a volume I have created.
Image name: image_v1
Container name: container_v1
The image I have created contains the next:
FROM ubuntu:22.04
RUN apt-get update && \
apt-get install -y git && \
apt-get install -y python3.10 && \
apt-get clean
I´ve also created 2 volumes: inputVol and outputVol following the next command: docker volume create <volume_name>
Volume 1 name: inputVol
Volume 2 name: outputVol
Now i need to connect my directory in my windows PC to the volumes created, paths in windows:
Path in PC to volume 1: "C:\Users\AAA\Desktop\input
Path in PC to volume 2: "C:\Users\AAA\Desktop\output
Path in the container where the volume should go:
Path for volume 1: /train/input
Path for volume 2: /train/output
After searching I found several ways but I think something like this could work:
docker run container_v1 --mount type=bind,source=“C:\Users\AAA\Desktop\input”,target=/train/input -v inputVol:/train/input --mount type=bind,source=“C:\Users\AAA\Desktop\output”,target=/train/output-v outputVol:/train/output image_v1
But I get the next error:
Unable to find image ‘container_elmo_therm:latest’ locallydocker: Error response from daemon: pull access denied for container_elmo_therm, repository does not exist or may require ‘docker login’: denied: requested access to the resource is denied.
What I understand is that where i set my existing container there should go the image, where do I specify the container?
If I have not been clear what i want to achive is to conect my directories in windows to the volumes created.