Fix docker exec command
This commit is contained in:
Родитель
1cbcc049ee
Коммит
785071f2ed
|
@ -227,7 +227,7 @@ The `docker-compose.yml` file describes the 3 services that the project needs to
|
||||||
#### Useful commands using Django with Docker
|
#### Useful commands using Django with Docker
|
||||||
|
|
||||||
To open a terminal session inside the docker container (`docker container ls` to see active docker container ids):
|
To open a terminal session inside the docker container (`docker container ls` to see active docker container ids):
|
||||||
`docker exec it {docker-container-id} bash`
|
`docker exec -it {docker-container-id} bash`
|
||||||
Activate the python environment:
|
Activate the python environment:
|
||||||
`source dockerpythonvenv/bin/activate`
|
`source dockerpythonvenv/bin/activate`
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче