Docker
//Install Docker //Check whether Docker is installed $ Docker version //Check Docker running status $ sudo status docker //Get List of Docker Images $ docker images //Remove Docker Images $ docker rmi//created and started container $ docker run //Start and stop a container $ docker start container_name $ docker stop container_name //enter a container shell $ docker exec -t -i container_id /bin/bash //check out the current running containers $ docker ps //Remove Docker Containers $ docker rm CONTAINER ID //Run Docker $ sudo start docker //Stop & Remove All Docker Containers $ docker stop $(docker ps -a -q) $ docker rm $(docker ps -a -q) //Installing Docker Compose $ sudo apt-get -y install python-pip $ sudo pip install docker-compose //Running a Container with Docker Compose $ cd hello-world $ nano docker-compose.yml $ docker-compose up -d $ docker-compose ps $ docker-compose stop
No comments:
Post a Comment