Search code examples
dockerdevopsconcourse

Some questions on Docker basics?


I'm new to docker.Most of the tutorials on docker cover the same thing.I'm afraid I'm just ending up with piles of questions,and no answers really. I've come here after my fair share of Googling, kindly help me out with these basic questions.

  1. When we install a docker,where it gets installed? Is it in our computer in local or does it happen in cloud?
  2. Where does containers get pulled into?I there a way I can see what is inside the container?(I'm using Ubuntu 18.04)
  3. When we pull an image.Docker image or clone a repository from Git.where does this data get is stored?

Solution

    1. The docker daemon gets installed on your local machine and everything you do with the docker cli gets executed on your local machine and containers.
    2. (not sure about the 1st part of your question). You can easily access your docker containers by docker exec -it <container name> /bin/bash for that you will need to have the container running. Check running containers with docker ps
    3. (again I do not entirely understand your question) The images that you pull get stored on your local machine as well. You can see all the images present on your machine with docker images

    Let me know if it was helpful and if you need any futher information.