how to create directory in docker from terminal from zsh terminal?

  docker, dockerfile, macos, zsh

so i have downloaded Docker Desktop and until now i have tested out containers and stuff just executing regular commands (docker ps, docker images…, docker run…) inside my zsh terminal and it works fine but now i am in a position where i want to create a directory inside docker host so that i can put my dockerfile inside, but if i run mkdir directory-name it is going to create the directory inside my mac not docker! so what command can i use to indicate that i want the directory to be created on docker not on my own mac machine?

enter image description here

Source: Docker Questions

LEAVE A COMMENT