Tuesday, 4 June 2019

Docker: Assign a name to your container


Using –name argument, you can assign a name to your container.

Example
docker run --name myWebApplication jboss/wildfly

$docker container ls
CONTAINER ID        IMAGE               COMMAND                  CREATED             STATUS              PORTS               NAMES
c468cd633430        jboss/wildfly       "/opt/jboss/wildfly/…"   43 seconds ago      Up 42 seconds       8080/tcp            myWebApplication




Previous                                                 Next                                                 Home

No comments:

Post a Comment