Making Containers
-
2. Installing Docker
How to Install Docker on Ubuntu Easy Guide
-
3. Exploring Docker Commands
Now to Explore Docker Commands
First, to show the Help play:Copysudo docker help
Again to Display Help for a single Command:
Copysudo docker help [dockerCommand]
Example for the create command:
Copysudo docker help create
-
4. Creating Docker Container
How to Create Docker Containers
With this we’ll Pull the Docker Images from the Docker Repositories:
(Although it’s possible to Install a Local Docker Image…)Copysudo docker create --name redis redis
This Create a Redis DB Image Named ‘redis’
The -p Flag is related to the Connecting Port
The -d Flag Detach the Instance and Run it on Background. -
5. Listing Docker Containers
To List the Docker Instance
To List All:Copysudo docker ps -a
And only the Running ones:
Copysudo docker ps
Contents