$ docker ps
#If not, wake up the container with the following command
$ docker-compose up -d {Container name}
$ docker exec -it {Container name} bash
#Once inside, enter "python" and check the operation as you like.
$ container_home#
$ container_home# python
>
>
> print('Hero')
>Hero
Python interactive mode can be exited with "ctr + d" By the way, be careful as you will get angry if Python is not installed in the container.
Recommended Posts