- FIRST CLONE THE REPOSITORY
- OPEN POWERSHELL
- GO INTO THE DIRECTORY OF CLONED REPOSITORY(the docker file is present in this directory)
- TYPE IN THE COMMAND "docker build -t "app:v4" ." (. indicates the current directory, if you want run from outside repository give the path to repository in place of dot)
- ONCE THE IMAGE IS BUILT CHECK THE IMAGE DETAILS USING THE COMMAND "docker image ls"(check for the image id and for tag)
- NOW RUN THE COMMAND "docker run -d -p "8000:8000" -v {$CLONED REPOSITORY}:/code app:v4" (the port 8000 of docker container is allocated to the port 8000 of your computer and the contents of the cloned repository is mounted from your computer to the /code of the container)
- NOW GO TO YOUR BROWSER AND IN THE ADDRESS BAR YOU CAN GO TO THE FOLLOWING URLS
-
Notifications
You must be signed in to change notification settings - Fork 1
chandu05-dev/djangoapp_to_docker
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
No description, website, or topics provided.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published