To Integrate Docker with Python3
Description
— — — — — — — — — — — — — — — — — — — — — — — —
- To Configure Docker on Top of REDHAT LINUX 8
- To Start Docker
- To Stop Docker
- To launch a container on Docker
- To Start and attach Container (if already exists)
- To stop container
- To check for Running Container
- To check for all container (Either running or stopped)
- To delete/remove the container on docker
— — — — — — — — — — — — — — — — — — — — — — — — —
SEE MENU OF DOCKER ON PYTHON:
STEP 1.
- To Configure Docker on Top of REDHAT LINUX 8
There has to some step to follow to configure docker on Redhat linux 8.
In my case docker repo is already exists i have configured so i pressed ‘y’
and My Docker configured.
STEP 2.
To Start Docker
STEP 3.
To Stop Docker
STEP 4.
To Launch a container/OS on Docker
There has some step required to Launch container
- Download container
- Install and run a container
In my Case, I downloaded Ubuntu and Install Ubuntu 14.04.
See, In the last CLI of Ubuntu coming up.
STEP 5.
To start and Launch a container(if already exists)
In my case, I just launched a Ubuntu container named os4.
STEP 6.
To stop container/OS
In my case, I stopped the os4 container.
STEP 7.
To check for Running Container
here, you can see no container is running. I launched os4 and stopped os4 so no container is running.
STEP 8.
To check for all container (Either running or stopped)
See, there are 3 contained which are in exited state.
STEP 9.
To delete/remove the container on docker
To removing container from Docker you have to know the id of container . so here, asking do you know container id . I do not so I pressed ’n’ , then program showed me id Then I copied and gave the ID then It removed.
Thanks..