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
Copy file name to clipboardExpand all lines: Sources/containertool/Documentation.docc/containertool.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -13,7 +13,7 @@ Wrap a binary in a container image and publish it.
13
13
`containertool` can be run directly but its main role is to be a helper tool used by the `ContainerImageBuilder` command plugin. See the plugin documentation for examples of how to use it in this way.
Copy file name to clipboardExpand all lines: Sources/swift-container-plugin/Documentation.docc/build.md
+8-8Lines changed: 8 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,10 +1,10 @@
1
1
# Build and package your service
2
2
3
-
Build a container image and upload it to a registry.
3
+
Build a container image and publish it to a registry.
4
4
5
5
## Overview
6
6
7
-
The plugin exposes the command `build-container-image` which you invoke to build your service, package it in a container image and upload it to a container registry, in a single command:
7
+
The plugin exposes the command `build-container-image` which you invoke to build your service, package it in a container image and publish it to a container registry, in a single command:
8
8
9
9
```shell
10
10
% swift package --swift-sdk x86_64-swift-linux-musl \
@@ -13,7 +13,7 @@ The plugin exposes the command `build-container-image` which you invoke to build
13
13
14
14
* The `--swift-sdk` argument specifies the Swift SDK with which to build the executable. In this case we are using the Static Linux SDK, [installed earlier](<doc:requirements>), to build an statically-linked x86_64 Linux executable.
15
15
* The `--from` argument specifies the base image on which our service will run. `swift:slim` is the default, but you can choose your own base image or use `scratch` if your service does not require a base image at all.
16
-
* The `--repository` argument specifies the repository to which the plugin will upload the finished image.
16
+
* The `--repository` argument specifies the repository to which the plugin will publish the finished image.
17
17
18
18
> Note: on macOS, the plugin needs permission to connect to the network to publish the image to the registry.
19
19
>
@@ -46,15 +46,15 @@ Any standard container runtime can use the reference to pull and run your servic
46
46
47
47
### Default registry
48
48
49
-
If you don't include a registry name in the `--repository` argument, the plugin will upload your image to Docker Hub by default.
49
+
If you don't include a registry name in the `--repository` argument, the plugin will publish your image to Docker Hub by default.
50
50
51
51
You can override the default registry by using the `--default-registry` argument or setting the `CONTAINERTOOL_DEFAULT_REGISTRY` environment variable.
52
52
53
-
The following examples show how to upload images to some popular registry providers.
53
+
The following examples show how to publish images to some popular registry providers.
54
54
55
55
### Docker Hub
56
56
57
-
The following example uploads an image to a repository named `mydockerid/example` on Docker Hub.
57
+
The following example publishes an image to a repository named `mydockerid/example` on Docker Hub.
58
58
59
59
The repository will be created if it does not already exist.
60
60
@@ -65,7 +65,7 @@ swift package --swift-sdk x86_64-swift-linux-musl build-container-image \
65
65
66
66
### GitHub Container Registry
67
67
68
-
The following example uploads an image to a repository named `mydockerid/example` on GitHub Container Registry.
68
+
The following example publishes an image to a repository named `mydockerid/example` on GitHub Container Registry.
69
69
70
70
The repository will be created if it does not already exist.
71
71
@@ -76,7 +76,7 @@ swift package --swift-sdk x86_64-swift-linux-musl build-container-image \
76
76
77
77
### Amazon Elastic Container Registry
78
78
79
-
The following example uploads an image to the repository named `example/test` on Amazon Elastic Container Registry.
79
+
The following example publishes an image to the repository named `example/test` on Amazon Elastic Container Registry.
80
80
81
81
**The repository must already exist before you push to it.**
82
82
Create a repository using the [Amazon ECR Console](https://docs.aws.amazon.com/AmazonECR/latest/userguide/repository-create.html).
0 commit comments