From the course: AWS AI Automation Foundations: Command Line Interface (CLI) with Amazon Q in AWS CloudShell

Unlock this course with a free trial

Join today to access over 25,000 courses taught by industry experts.

Using docker in CloudShell

Using docker in CloudShell

- [Instructor] One stealth feature of the CloudShell is Docker integration. Let's go ahead and take a look at what I mean. So first up here, docker version. Well, we got it already installed here, and if you type in docker info, it will give you a nice diagram of essentially the architecture, how many CPUs are available, how much memory is available so we have enough to actually do our work. And then if you want to check for disk space, df space -h or human readable disk usage is a good command to run. Alright, well how do we actually use Docker? What are some of the commands? Well, first up, do docker pull hello-world. There we go. So we can see that we've already got this image in our library. Let's go ahead and run this. So we'll type in docker run hello-world. So this is just a basic image that spits out some text and we can see how small it is. If we just go through here and do docker images, you can see here, ooh, we have a couple different images and if we go to docker ps -a…

Contents