You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ashok@Ashoks-Mac-mini ~ % docker run --name p39 -it python:3.9-slim
Python 3.9.9 (main, Dec 21 2021, 06:58:41)
[GCC 10.2.1 20210110] on linux
Type "help", "copyright", "credits" or "license"for more information.
>>>
Step 2: Execute bash shell inside the running container
ashok@Ashoks-Mac-mini ~ % docker exec -it p39 /bin/bash
root@5383c4e2379c:/# gcc
bash: gcc: command not found
root@5383c4e2379c:/#
Note: Commands can't be executed inside stopped containers.