Docker sq
Docker Fundamentals - Getting Started

Starting a Shell

Mute
Current Time 0:00
/
Duration Time 0:00
Loaded: 0%
Progress: 0%
Stream TypeLIVE
Remaining Time -0:00
 
PRO

Starting a Shell

To execute a shell inside a container, run the command docker container run -it alpine sh. We will use the Alpine image, which is a minimal Docker image based on Alpine Linux. The -it flag tells Docker that you are running an interactive program. The sh command indicates that you are executing a command inside the container.

The command cat /etc/os-release allows you to check that you are actually inside an Alpine Linux.

The command uname -r provides info about the kernel.

To stop the shell press control + D.

You need to be a Pro subscriber to see this content

 

I finished! On to the next chapter