Description
Hi, All.
This is a report of an issue by Azure Machine Learning Support Engineer.
In the command function of SDK V2, docker_args
argument type is a string and multiple arguments cannot be passed.
command
The sample code to reproduce the event is as follows
- Sample Code
# Problem sample
job = command(
command='df -h && sleep 30 && exit',
environment='AzureML-sklearn-0.24-ubuntu18.04-py37-cpu:9',
compute='<Compute Name>', #Compute instance
docker_args='--cap-add=SYS_ADMIN --device=/dev/fuse --security-opt apparmor:unconfined'
)
# submit the command
returned_job = ml_client.jobs.create_or_update(job)
- Error Message
Failed to start Docker container xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx(masking)-execution-wrapper due to: Invalid container capability (cap-add): SYS_ADMIN --device=/dev/fuse --security-opt apparmor:unconfined. Supported values: ALL, AUDIT_CONTROL, AUDIT_READ, AUDIT_WRITE, BLOCK_SUSPEND, BPF, CHECKPOINT_RESTORE, CHOWN, DAC_OVERRIDE, DAC_READ_SEARCH, FOWNER, FSETID, IPC_LOCK, IPC_OWNER, KILL, LEASE, LINUX_IMMUTABLE, MAC_ADMIN, MAC_OVERRIDE, MKNOD, NET_ADMIN, NET_BIND_SERVICE, NET_BROADCAST, NET_RAW, PERFMON, SETFCAP, SETGID, SETPCAP, SETUID, SYS_ADMIN, SYS_BOOT, SYS_CHROOT, SYS_MODULE, SYS_NICE, SYS_PACCT, SYS_PTRACE, SYS_RAWIO, SYS_RESOURCE, SYS_TIME, SYS_TTY_CONFIG, SYSLOG, WAKE_ALARM. This error may occur if invalid or unsupported values are passed in the Docker arguments (for example with `--cap-add` ou `--cap-drop`).
As a result of discussions with the Azure Machine Learning Product Group, it has been determined that the error occurs because the command function in the following public information is implemented as a string, whereas it is passed as a list.
I assume that the correction of the implementation of the command function is being checked internally, but I would appreciate it if you could also correct this document.
Document Details
⚠ Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.
- ID: f97f70b2-cf01-935c-3518-8476907c04be
- Version Independent ID: 455fd1a3-5529-efb9-8a36-63d43e45d6b8
- Content: azure.ai.ml package
- Content Source: docs-ref-autogen/azure-ai-ml/azure.ai.ml.yml
- Service: machine-learning
- GitHub Login: @lmazuel
- Microsoft Alias: lmazuel