Making Containers
-
2. Installing Docker
How to Install Docker on Fedora Easy Guide
-
3. Exploring Docker Commands
Now to Explore Docker Commands
First, to show the Help play:sudo docker help
Again to Display Help for a single Command:
sudo docker help [dockerCommand]
Example for the create command:
sudo 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…)sudo 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:sudo docker ps -a
And only the Running ones:
sudo docker ps
Contents