1- to list all docker container
docker container ps -a
2- to list only running container
docker container ps
3- to list all docker images
docker image ls -a
4- to list only runing images
docker image ls
5- attach image to new container
docker container create -it <image name> bash
6- to start container
docker start <container id>
7- To know Ip Address to specific container
docker container inspect <container name> | grep -i IpAddress
8- to pull image and start runing from docker hup
docker container run -it --name <your container name> -h <your host name> <docker hyp repo image> bash
9- To know info about docker image
docker image inspect <image id>
10- to remove all image in one cmd
docker rmi -f $(docker image ls -aq)
11- to remove all container
docker rm -f $(docker ps -aq)
12- to commit container with new modification
docker commit <container id> <accoutn on docker hup /yourrepo on docker hup : tag>
ex:
sudo docker commit ff0b322f4a1b ahmed97hassan/big_data_tool:v1
13- to push container on docker hup
docker push <accoutn on docker hup /yourrepo on docker hup : tag>
ex:
sudo docker push ahmed97hassan/big_data_tool:v1
14- copy file from local to container
sudo docker cp <source path> <container id :/shared-volume>
15- if you want to map container to host
sudo docker container run -d --name web --network host <image>
- you must have docker and docker-compose
- use this link to install if you don't have link
* RUN Attached shell script in this repo
. create_stack.sh
1- open nifi terminal
2- go to bin/
3- . nifi.sh start
1- create virtual environment
python3 -m venv ./venv
2- activate virtual environment
source venv/bin/activate
3- pip install -r requirements.txt