The output should look like this: REPOSITORY TAG IMAGE ID CREATED SIZE For example, to install MongoDB 4.4.6, enter docker pull mongo:4.4.6.Įnsure the image has been installed: sudo docker images To pull a specific version, add the tag for that version to the command. This command pulls the latest version by default (as it says in the first line of the output). Status: Downloaded newer image for mongo:latest To install it:ĭownload and install the MongoDB image from Docker Hub: sudo docker pull mongo How to Install a MongoDB Docker Containerĭocker makes creating a MongoDB image very easy, as they keep an officially maintained version at the Docker Hub. Remember to include sudo before running your text editor. If you’re not familiar with the sudo command, visit our Users and Groups guide.Īll configuration files should be edited with elevated privileges. Commands that require elevated privileges are prefixed with sudo. This guide is written for a non-root user. You can expect an output similar to the following: Docker version 20.10.8, build 3967b7d Verify that Docker is installed on your Linode: docker -version Install Docker on your Linode by following the steps in our guide on How to Install and Use Docker on Ubuntu and Debian.
0 Comments
Leave a Reply. |