apple / apple/container

[Request]: Add drivers to `container volume` for network NFS or SMB shares

Open
#1,413 1 comment 1 reaction 0 assignees View on GitHub
next storage
Dominant language
Swift
Stars
49.9k
Forks
1.8k
Avg merge
1d 20h
Merged PRs (30d)
22

Description

### Feature or enhancement request details

For example:

- `container volume create --driver smb ...`
- `container volume create --driver nfs ...`

Create the SMB volume once:

```
container volume create --driver smb \
--opt share=//server/share \
--opt username=user \
--opt password=secret \
myshare
```

Use it exactly like any other named volume:

```
container run -v myshare:/data alpine ls /data
```

or with container create:

```
container create -v myshare:/data --name mycontainer alpine
```

This would make mounts not hop in the virtiofs.

### Code of Conduct

- [x] I agree to follow this project's Code of Conduct

Contributor guide

Open the contributing guide

Research direction

Start with the `container volume create` command and compare it with the `container run` and `container create` volume paths. Done means named volumes can be created with SMB or NFS drivers and mounted through the examples shown, without routing mounts through virtiofs.

Written by the indexing model from the issue text.

Assessment

Tech stack
swift
Domain
cli, infrastructure
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.