You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
*Applies to: Azure CLI & Python SDK v1 (Deprecated)*
168
+
*Applies to: Python SDK v1 (Deprecated)*
169
169
<!--issueDescription-->
170
170
This issue can happen when your environment definition is missing a `DockerSection.` This section configures settings related to the final Docker image built from your environment specification.
Specifying credentials in your environment definition is deprecated. Delete credentials from your environment definition and use workspace connections instead.
@@ -436,30 +432,107 @@ az ml connection create --file connection.yml --resource-group my-resource-group
436
432
437
433
**Troubleshooting steps**
438
434
439
-
*Applies to: Python SDK azureml V1*
435
+
*Applies to: Python SDK v1 (Deprecated)*
440
436
441
437
Instead of specifying these attributes in the `DockerSection` of your environment definition, use [DockerConfiguration](https://aka.ms/azureml/environment/docker-configuration-class)
442
438
443
439
**Resources**
444
440
* See `DockerSection`[deprecated variables](https://aka.ms/azureml/environment/docker-section-class)
445
441
446
442
### Dockerfile length over limit
447
-
- The specified Dockerfile can't exceed the maximum Dockerfile size of 100 KB
448
-
- Consider shortening your Dockerfile to get it under this limit
443
+
<!--issueDescription-->
444
+
**Potential causes:**
445
+
* Your specified Dockerfile exceeded the maximum size of 100 KB
446
+
447
+
**Affected areas (symptoms):**
448
+
* Failure in registering your environment
449
+
<!--/issueDescription-->
450
+
451
+
**Troubleshooting steps**
452
+
453
+
Shorten your Dockerfile to get it under this limit
454
+
455
+
**Resources**
456
+
* See [best practices](https://docs.docker.com/develop/develop-images/dockerfile_best-practices/)
449
457
450
458
### *Docker build context issues*
459
+
### Missing Docker build context location
460
+
<!--issueDescription-->
461
+
**Potential causes:**
462
+
* You didn't provide the path of your build context directory in your environment definition
463
+
464
+
**Affected areas (symptoms):**
465
+
* Failure in registering your environment
466
+
<!--/issueDescription-->
467
+
468
+
**Troubleshooting steps**
469
+
470
+
*Applies to: Python SDK v1 (Deprecated)*
471
+
472
+
Include a path in the `build_context` of your [DockerSection](https://aka.ms/azureml/environment/docker-section-class)
473
+
* See [DockerBuildContext Class](/python/api/azureml-core/azureml.core.environment.dockerbuildcontext)
474
+
475
+
*Applies to: Azure CLI & Python SDK v2*
476
+
477
+
Ensure that you include a path for your build context
478
+
* See [BuildContext class](https://aka.ms/azureml/environment/build-context-class)
479
+
* See this [sample](https://aka.ms/azureml/environment/create-env-build-context-v2)
- In the Docker build context, a Dockerfile path must be specified
453
-
- The path should be relative to the root of the Docker build context directory
454
-
- See [Build Context class](https://aka.ms/azureml/environment/build-context-class)
485
+
<!--issueDescription-->
486
+
This issue can happen when AzureML fails to find your Dockerfile. As a default, AzureML will look for a Dockerfile named 'Dockerfile' at the root of your build context directory unless a Dockerfile path is specified.
487
+
488
+
**Potential causes:**
489
+
* Your Dockerfile isn't at the root of your build context directory and/or is named something other than 'Dockerfile,' and you didn't provide its path
490
+
491
+
**Affected areas (symptoms):**
492
+
* Failure in registering your environment
493
+
<!--/issueDescription-->
494
+
495
+
**Troubleshooting steps**
496
+
497
+
*Applies to: Python SDK v1 (Deprecated)*
498
+
499
+
In the `build_context` of your [DockerSection](https://aka.ms/azureml/environment/docker-section-class), include a `dockerfile_path`
500
+
* See [DockerBuildContext Class](/python/api/azureml-core/azureml.core.environment.dockerbuildcontext)
### Not allowed to specify attribute with Docker build context
457
-
- If a Docker build context is specified, then the following items can't also be specified in the
458
-
environment definition:
459
-
- Environment variables
460
-
- Conda dependencies
461
-
- R
462
-
- Spark
512
+
<!--issueDescription-->
513
+
This issue can happen when you've specified properties in your environment definition that can't be included with a Docker build context.
514
+
515
+
**Potential causes:**
516
+
* You specified a Docker build context, along with at least one of the following in your environment definition:
517
+
* Environment variables
518
+
* Conda dependencies
519
+
* R
520
+
* Spark
521
+
522
+
**Affected areas (symptoms):**
523
+
* Failure in registering your environment
524
+
<!--/issueDescription-->
525
+
526
+
**Troubleshooting steps**
527
+
528
+
*Applies to: Python SDK v1 (Deprecated)*
529
+
530
+
If any of the above-listed properties are specified in your environment definition, remove them
531
+
* If you're using a Docker build context and want to specify conda dependencies, your conda specification should reside in your build context directory
0 commit comments