

docker psĬONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES If you used the exit command, it will stop the current container.Īfter exiting from Docker container, execute below command to list all running containers. This will leave container running in the background an provide you host system console. To exit from docker container type CTRL + P + Q. Launch New Container with Image docker run -i -t debian /bin/bash

docker imagesĭebian latest 3bbb526d2608 4 weeks ago 101MB Now make sure that the above images have been downloaded successfully on your system. Search Docker Images docker search debianĭownload Docker Images docker pull debian Here are some basic details for search and download Docker images, launch containers and manage them. Step 4 – How to Use DockerĪfter installation of Docker on a Linux. Use our Docker Tutorial for Beginners to working with Docker. Your system is now ready for running Docker containers. sudo apt-get updateĪfter successful installation of Docker community edition, the service will start automatically, Use below command to verify service status. Run the following commands to upgrade apt index and then install Docker community edition on Debian. Your system is now ready for Docker installation. sudo add-apt-repository "deb buster stable" You must have to enable this repository to install Docker on Debian. curl -fsSL | sudo apt-key add -Īfter that add the Docker repository on your Debian system which contains Docker packages including its dependencies. Run the below commands to do this: sudo apt-get install apt-transport-https ca-certificates curl gnupg2 software-properties-commonĪfter that, you need to import dockers official GPG key to verify packages signature before installing them with apt-get. Now, install some required packages on your system for installing Docker on Debian system. sudo apt-get purge docker lxc-docker docker-engine docker.io Execute commands to remove unnecessary Docker versions. First of all, remove any default Docker packages from the system before installation Docker on a Linux VPS.
