Restart Docker container: docker restart “id-of-container” Stop Docker container: docker stop “id-of-container” Start Docker container: docker start “id-of-container” Listing the running containers: docker ps In this paragraph, we will show you some of the docker commands that might be useful for you. You will receive the following output: ps aux | grep docker └─2361 /usr/bin/dockerd -H fd:// -containerd=/run/containerd/containerd.sockĭocker service is not running on a specific port, but if you want to check the process, you can execute the following command: ps aux | grep docker Loaded: loaded (/lib/systemd/system/rvice enabled vendor preset: enabled)Īctive: active (running) since Thu 03:02:24 CST 10s ago rvice - Docker Application Container Engine.You should receive the following output: sudo systemctl status docker To check the status of the service, execute the following command: sudo systemctl status docker ![]() Once the key and repo are added, we can install Docker with the following commands: sudo apt-get install docker-ce docker-ce-cli containerd.io -yĪfter successful installation, start and enable the docker service: sudo systemctl enable docker & sudo systemctl start docker Once the GPGK key is added, we can proceed to add the repo: sudo add-apt-repository "deb focal stable" Step 4. To add the GPGK key: curl -fsSL | sudo apt-key add. First, we will add the key, then the repo. ![]() The docker repository, by default, is not included in the official repository of Ubuntu 22.04. ![]() Install Docker Dependenciesīefore we install Docker, we need to install some Docker dependencies: sudo apt-get install apt-transport-https curl gnupg-agent ca-certificates software-properties-common -y Step 3. sudo apt-get update -y & sudo apt-get upgrade -y Step 2. Update the system packages to the latest versions available before you start any installation on a fresh OS.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |