Category: Docker

Posted on: September 27, 2021 Posted by: rahulgite Comments: 14

Docker Commands

All Docker Options and Commands Usage: docker [OPTIONS] COMMAND A self-sufficient runtime for containers Options: –config string Location of client config files (default “/root/.docker”) -c, –context string Name of the context to use to connect to the daemon (overrides DOCKER_HOST env var and default context set with “docker context use”) -D, –debug Enable debug mode -H, –host list Daemon socket(s) to connect to -l, –log-level string Set the logging level (“debug”|”info”|”warn”|”error”|”fatal”) (default “info”) –tls Use TLS; implied by –tlsverify –tlscacert string Trust certs signed only by this CA (default “/root/.docker/ca.pem”) –tlscert string Path to TLS…

Loading

Posted on: September 27, 2021 Posted by: rahulgite Comments: 11

Install Docker in Linux

  Uninstall old  docker versions: sudo apt-get remove docker docker-engine docker.io containerd runc it’s OK if apt-get reports that none of these packages are installed. We have 3 ways to install docker Most users set up Docker’s repositories and install from them, for ease of installation and upgrade tasks. This is the recommended approach. Some users download the DEB package and install it manually and manage upgrades completely manually. This is useful in situations such as installing Docker on air-gapped systems with no access to the internet. In testing and development environments, some users choose to use automated convenience scripts to…

Loading

Posted on: July 22, 2021 Posted by: rahulgite Comments: 11

Docker

What is Docker? Docker is a set of platform as a service products that use OS-level virtualization to deliver software in packages called containers. Containers are isolated from one another and bundle their own software, libraries, and configuration files; they can communicate with each other through well-defined channels. Install Docker on Linux sudo apt-get update sudo apt-get install docker-ce docker-ce-cli containerd.io Check installed Docker Version docker version Docker command line Structure Old command line structure(still works) docker <command> options New command line Structure docker <command> <sub-command> options Docker Image vs Docker Container Image is the…

Loading