The -p option is used to specify a port for the process running in the container. The option will run the container in the background and return the container ID. The following command syntax would run a Docker container in a detached mode as indicated by the -d option. In detached mode the container is detached from the command line and the I/O is done through networking and shared volumes. ![]() The docker run command may be run in detached mode or attached mode. The name can then be used to address the container in other Docker commands. The -name option sets the name of the container. Its options allow users to configure how the Docker image is run, override Dockerfile settings, configure networking, and set privileges and resources for the container. It is the go-to command for launching new containers. The docker run command is used to run a process in a container. We can get more details on the network from the network inspect command: docker network inspect my_network We can check whether the network has been created successfully with: docker network ls ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |