git clone https://github.com/imvickykumar999/ADK-Django.git
cd ADK-Django/myadk
python -m venv .venv
source .venv/bin/activate # ubuntu/macOS
.\.venv\Scripts\activate # powershell
pip install -r requirements.txt
python manage.py makemigrations
python manage.py migrate
python manage.py collectstatic
python manage.py createsuperuser
python manage.py runserver 8000Any machine with the Docker Engine installed (including a cloud server or a local computer) can start your application using the following two commands:
This command downloads the latest version of your application from your Docker Hub repository.
docker pull imvickykumar999/myadk-django:latestThis command starts the application, sets a name, and maps the port for access.
docker run -d \
-p 8000:8000 \
--name myadk-web-production \
imvickykumar999/myadk-django:latest| Parameter | Function |
|---|---|
-d |
Runs the container in detached mode (in the background). |
-p 8000:8000 |
Maps Host Port 8000 to the Container's internal port 8000. |
--name ... |
Assigns the container an easy-to-reference name. |
| Action | Command | Purpose |
|---|---|---|
| Download Image | docker pull imvickykumar999/myadk-django:latest |
Downloads the application image from Docker Hub to your local machine. |
| Initial Run | docker run -d -p 8000:8000 --name myadk-web-production imvickykumar999/myadk-django:latest |
Creates and starts a new container from the image in detached mode, naming it myadk-web-production and mapping the ports. |
| Stop Container | docker stop myadk-web-production |
Gracefully stops the running container. |
| Start Container | docker start myadk-web-production |
Restarts the previously stopped container. |
| View Running | docker ps |
Lists all currently running containers. |
| View All | docker ps -a |
Lists all containers (running, stopped, etc.). |
| Remove Container | docker rm myadk-web-production |
Deletes the container from your system (must be stopped first). |
| Force Stop | docker kill myadk-web-production |
Immediately forces the container to stop (less graceful than docker stop). |







