forked from sha-since1999/inno-doctor
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcommand.txt
29 lines (22 loc) · 837 Bytes
/
command.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
Part#1
docker build --tag python-django .
docker run --publish 8000:8000 python-django
Part#2
docker-compose build
docker-compose run --rm app django-admin startproject myapp.
docker-compose up
docker build -t inno-doctor-repo .
docker run -dit -p 8000:8000 inno-doctor-repo
docker run --env VAR1 --env VAR2 ubuntu env | grep VAR
docker-compose up -d --build
docker-compose exec web python manage.py migrate
docker-compose exec web python manage.py createsuperuser
Procedure[ to debug the container and images]
Stop the container(s) using the following command:
docker-compose down
Delete all containers using the following command:
docker rm -f $(docker ps -a -q)
Delete all volumes using the following command:
docker volume rm $(docker volume ls -q)
Restart the containers using the following command:
docker-compose up -d