Got it

What Is a Volume?

Latest reply: Apr 20, 2017 00:52:50 1093 2 0 0 0

What Is a Volume?

A volume is a specially-designated directory within one or more containers that bypasses the Union File System. Using a volume means mounting an absolute path on a host (also called a node) to a path on a container, thereby achieving sharing between hosts and containers.

There are two ways to define a volume:

  • Specify the Volume parameter on either the Create Component Template page or the App Designer page of the CCE console
  • Run the docker run command with the -v option

    For example, to mount the /src/webapp directory on a host to the /opt/webapp directory on the frontend container, run the following command:

    docker run -d -P --name frontend -v /src/webapp:/opt/webapp frontend
View more
  • x
  • convention:

thanks!
View more
  • x
  • convention:

Comment

You need to log in to comment to the post Login | Register
Comment

Notice: To protect the legitimate rights and interests of you, the community, and third parties, do not release content that may bring legal risks to all parties, including but are not limited to the following:
  • Politically sensitive content
  • Content concerning pornography, gambling, and drug abuse
  • Content that may disclose or infringe upon others ' commercial secrets, intellectual properties, including trade marks, copyrights, and patents, and personal privacy
Do not share your account and password with others. All operations performed using your account will be regarded as your own actions and all consequences arising therefrom will be borne by you. For details, see " User Agreement."

My Followers

Login and enjoy all the member benefits

Login

Block
Are you sure to block this user?
Users on your blacklist cannot comment on your post,cannot mention you, cannot send you private messages.
Reminder
Please bind your phone number to obtain invitation bonus.