Back to Dockerlabs

Running a command inside running Container

portal/docs/6_Accessing-And-Managing-Docker-Container/Running-A-Command-Inside-Running-Container.md

latest679 B
Original Source

Running a command inside running Container

Tested Infrastructure

PlatformNumber of InstanceReading Time
Play with Docker15 min

Pre-requisite

  • Create an account with DockerHub
  • Open PWD Platform on your browser
  • Click on Add New Instance on the left side of the screen to bring up Alpine OS instance on the right side

Create Ubuntu Container

docker run -dit ubuntu

Opening up the bash shell

docker exec -t <container-id> bash