How does win7 upload the host code to the docker image

how does win7 upload the host code to the docker image?
1. I have dockertoolbox
2 installed on the win7 system. This is how I run the mirror
run the mirror for the first time:
docker run-d-it-- name lamp-p 80:80-p 3306-p9501 docker run 9501 / bin/bash
3. Do not know how to upload the win7 system code to the image? Solve

Jun.27,2022

Mount a host directory as a data volume
parameter -v or -- volume or -- mount
such as docker run-d-it-- name lamp-p 80:80-p 33063306-p 9501range 9501-v / local directory: / docker container directory / bin/bash


docker run -d -it --name lamp -v ~/code:/home/code -p 80:80 -p 3306:3306 -p9501:9501 /bin/bash

~ / code:/home/code where ~ / code native project code path, / home/code project code path in image

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-7be33b-2a468.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-7be33b-2a468.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?