![]() ![]() And if you do not specify an IP in the -p option, then 0.0.0.0 is assumed by default.docker.io/library/ is the default registry and the latest is the default tag, so orientdb is the same as docker.io/library/orientdb:latest.You can check this by running docker run -help as mentioned before. Similarly the most common options have their short forms too, like -p for -publish, -d for -detach, or -e for -env.Most common management commands have shorter forms, like docker run is equivalent to docker container run.Laziness is the Mother of Progressīut it is way too much typing, so luckily for lazy guys like me Docker comes with some help. env is the way to pass the environment variable to the container, like the database root user password required during the first setup of the OrientDB database server publish 0.0.0.0:2480:2480 says that the port 2480 used by the application inside the container should be exposed to the host computer and mapped to the port 2480 accessible via any client IP because of 0.0.0.0 mask. detach says that the container should start in the background What are the options we are going to use?.Similarly you can call for help for the tool using docker -help and for the list of commands related to container object using docker container -help.You can see the list of possible options and their meaning by attaching -help at the end, i.e. Everything in between the command and the image name are options specific for the docker command being executed.This is the image from orientdb repository which has the tag latest and stored in the public registry, as can be identified by docker.io/library/ namespace.…and the command is run, which creates a new container from the Docker image docker.io/library/orientdb:latest.We tell it to execute a command related to container Docker object (there are several kinds of objects you deal with using Docker, but we will get to that later)…. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |