Container: A process renting a space in memory. Built off of features of the Linux kernel (cgroups and namespaces).
Docker Containers: Builds an image that is retrieved from a repository, based on a control file. Contains only the components necessary to run the image.
Hypervisor VM: A traditional virtual machine, exists outside of a guest operating system to intercept the commands sent to the computer hardware.
Linux Containers (LXC): Virtualization of a full fledged operating system within linux kernels.
Restful API: Allows the developer or user to modularize the components of a transaction or a process.
Daemon: The long-term running background process that intermediates between Docker client and Docker registry.
Registry: Stores built Docker images to be served to build Docker containers.
Docker Hub: The default public registry.
Images: Web templates that hold instructions for the Docker daemon on what specifications and dependencies to build the container on.
Docker Toolbox: Creates a small virtual machine instance via virtual box and runs Docker on it.
Repository: A location where you can find important files needed to run a program or script.
Hyper-V: A Windows feature that can virtualize operating systems and entire hardware components.
Docker CLI: The mode of communication between the user and the Docker service.
Docker Commands:
docker -v/version - shows the version of Docker installed.
docker login/logout - login/logout to your repository.
docker ps - for listing Docker containers.
docker container run - creates a given container on the specified instructions and executes the container so it spawns a process.
docker container start - executes an existing container.
docker container create - creates a given container on the specified instructions for doesn’t execute it.
docker container stop - aborts a running container
docker container rm - removes an already stopped container from the Docker container list.
docker inspect [container ID/name] - returns information from the lower level than “docker ps/docker container ls”
docker stats [options] [container] - shows the docker statistics like resource usage and also can be used to get information about specific containers.
docker container run - pulls an image and executes the container created with it.
docker container attach [optional flags][container ID/name] - attaches a container that was created or started in interactive mode with pseudo-TTY allocated
docker container exec [optional flags][container ID/name][command to be executed] - executes a command from within a given container.
docker container cp [source path][destination path] - copies files back a forth between and container and the host machine.
docker container stop - gracefully terminates a container (uses both signals SIGTERM & SIGKILL).
docker [container/volume/network/image/system] - removes dangling container/data/image/volume
docker rmi - removes images
docker rmi --rm - runs a container with the condition that the container will be removed if the container stops
docker clean up script - stops all containers and removes all Docker components like containers, networks, volumes, dangling images except the downloaded images
docker reset script - just as above but removes the downloaded images too.
Happy Hacking! 👽