Quick News Bit

How to create a volume for Docker containers in Portainer

0

Learn how to use Portainer to create a volume for Docker containers with this brief tutorial from Jack Wallen.

In a recent TechRepublic video, Jack Wallen showed how to create and use a Docker CIFS volume with the Portainer web-based GUI. The following is an edited transcript of his tutorial.

First off, you’ll need to have a CIFS share to connect to on either the machine hosting Docker or another machine on your network.

Log into Portainer, select the Docker environment and click Volumes from the left navigation. Click Add Volume in the top right corner. Give the volume a name, and click the On/Off slider for Use CIFS Volume until it’s in the on position.

Type the address for the machine hosting the CIFS share. Type the share name. Select CIFS V3. Add a username who has access to the share, type that user’s password, and click Create the volume.

To use the volume, click Containers in the left navigation, and in the resulting window, click Add Container. Give the container a name. Type the image to be used for the container.

Scroll down to the Advanced Container Setting section. Click volumes. Click Map Additional Volume. Type the path within the container, such as /data/db. Select the newly created volume from the volume dropdown, and then, click Deploy the Container.

For more tutorials from Jack Wallen, subscribe to TechRepublic’s YouTube channel How To Make Tech Work — and remember to like this video.

For all the latest Technology News Click Here 

 For the latest news and updates, follow us on Google News

Read original article here

Denial of responsibility! NewsBit.us is an automatic aggregator around the global media. All the content are available free on Internet. We have just arranged it in one platform for educational purpose only. In each content, the hyperlink to the primary source is specified. All trademarks belong to their rightful owners, all materials to their authors. If you are the owner of the content and do not want us to publish your materials on our website, please contact us by email – [email protected]. The content will be deleted within 24 hours.

Leave a comment