Skip to content

Latest commit

 

History

History
54 lines (36 loc) · 1.16 KB

accessing-the-container.md

File metadata and controls

54 lines (36 loc) · 1.16 KB
layout title description
default
Beginners Track - Accessing the Container Shell
collabnix | DockerLab | Docker - Beginners Track

Accessing the Container Shell

Tested Infrastructure

Platform Number of Instance Reading Time
Play with Docker 1 5 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 

Accessing the container shell

docker exec -t <container-id> bash

Accesssing the container shell

docker attach <container-id>

Proceed >> Running a Command inside running Container