Skip to content

Docker

Docker is an open-source platform designed for automating the deployment, scaling, and management of applications. It enables developers to package an application along with its dependencies into a standalone container, ensuring that the application runs consistently in any environment. Containers are lightweight and portable, making them ideal for microservices architectures and continuous integration/continuous delivery (CI/CD) processes.

One-Click Run

sh
docker run -itd \
  --name AMMDS \
  -p 8080:80 \
  -v $(pwd)/data:/ammds/data \
  -v $(pwd)/db:/ammds/db \
  -v $(pwd)/download:/ammds/download \
  -v $(pwd)/media:/media \
  --restart always \
  qyg2297248353/ammds:latest
Command Explanation
ParameterExplanation
-itd or --interactive --tty --detachA combination option:
  • -i or --interactive: Keeps STDIN open even if not attached, maintaining the standard input of the container open.
  • -t or --tty: Allocates a pseudo-TTY (terminal), simulating a physical TTY so you can interact with the container as if it were a local terminal.
  • -d or --detach: Runs the container in the background, starting it as a daemon.
--name AMMDSSpecifies the name of the container as AMMDS.
-p 8080:80Maps port 8080 on the host to port 80 in the container, formatted as -p <host-port>:<container-port>.
-v $(pwd)/data:/ammds/dataMounts the ./data folder from the current working directory to /ammds/data inside the container, achieving data persistence.
-v $(pwd)/db:/ammds/dbMounts the ./db folder from the current working directory to /ammds/db inside the container for storing database files.
-v $(pwd)/download:/ammds/downloadMounts the ./download folder from the current working directory to /ammds/download inside the container, used for storing downloaded content.
-v $(pwd)/media:/mediaMounts the ./media folder from the current working directory to /media inside the container, suitable for mounting media directories; users should choose their own mount paths as needed.
--restart alwaysConfigures the container to always restart automatically, ensuring it starts up under all circumstances, including system restarts.
qyg2297248353/ammds:latestThe Docker image name and tag used, specifying which image to run.

Start Enjoying

Access <HostIP>:8080 through your browser to start enjoying your AMMDS application🥳~

For example, if running locally, you can view the application by visiting http://localhost:8080.

🎉 Now you can begin enjoying the features provided by AMMDS!

Technical support provided by Xinjiang Mengsen Software Development Studio