Using Docker on Windows
If Docker is not installed, please install the Docker client here.
https://docs.docker.com/desktop/install/windows-install/
Download the latest Docker image;
-
- In the start menu, start the docker desktop program;
-
- Press Win + R, then enter cmd to open the command prompt;
-
- Then copy this command:
docker pull mtphotos/mt-photos:latest
-
- In the command prompt, press the right mouse button to paste. After the paste is completed, press Enter and wait for the image to be downloaded;
If the download mirror is slow, you can add mirror acceleration: https://yeasy.gitbook.io/docker_practice/install/mirror
Create container
Created using docker desktop
-
- Wait for the command prompt prompt image download to complete;
-
- After the download is complete, go back to the docker desktop program and click Images on the left
-
- Find mtphotos/mt-photos in imgaes;
-
- Move the mouse up and click the Run button on the right;
-
- Click Optional Setting in the pop-up window to open the configuration interface;
-
- Add Container Name, Port Mapping(Ports), Directory Mapping(Volumes), Environment Variables(Environment variables) in sequence
Create using the command line
If you are interested in command-line properties, you can enter the following command at a command prompt to create a container:
docker run -d -v /e/mt-photos/config:/config -v /e/mt-photos/upload:/upload -v /e/photos:/photos -p 8063:8063 -e TZ=Asia/ Shanghai --name mt-photos mt-photos:latest
where /e/mt-photos/config corresponds to the E:\mt-photos\config folder in Windows
Note: Do not have newlines in the above command
After the creation is complete, you can see the mt-photos container in the Containers of the docker desktop program;
Access the web page
After waiting for the container to start successfully, use a browser to open the address: http://127.0.0.1:8063/ to access the installation wizard and start the initial configuration.
127.0.0.1
is the IP of the machine,8063
is the mapped port number, please replace it according to the actual situation