New: Intelligent Flashcards spaced-repetition decks for every topic, built to make things actually stick.
You run docker run -v mydata:/app nginx but you never ran docker volume create mydata. What happens to the volume?
docker run -v mydata:/app nginx
docker volume create mydata
Docker creates an anonymous volume with a random hex ID instead
Docker creates the named volume mydata automatically before starting the container
mydata
The docker run command fails because the volume must be pre-created
docker run