@@ -14,7 +14,7 @@ resources.
14
14
You can create a workspace in the UI. Log in to your Coder instance, go to the
15
15
** Templates** tab, find the template you need, and select ** Create Workspace** .
16
16
17
- ![ Creating a workspace in the UI] ( ./images/creating-workspace-ui.png )
17
+ ![ Creating a workspace in the UI] ( .. /images/creating-workspace-ui.png )
18
18
19
19
When you create a workspace, you will be prompted to give it a name. You might
20
20
also be prompted to set some parameters that the template provides.
@@ -24,7 +24,7 @@ You can manage your existing templates in the **Workspaces** tab.
24
24
You can also create a workspace from the command line:
25
25
26
26
Each Coder user has their own workspaces created from
27
- [ templates] ( ./admin/templates/README.md ) :
27
+ [ templates] ( .. /admin/templates/README.md ) :
28
28
29
29
``` shell
30
30
# create a workspace from the template; specify any variables
@@ -58,6 +58,24 @@ The following filters are supported:
58
58
` connecting|connected|timeout ` , e.g, ` has-agent:connecting `
59
59
- ` id ` - Workspace UUID
60
60
61
+ ## Updating workspaces
62
+
63
+ After updating the default version of the template that a workspace was created
64
+ from, you can update the workspace.
65
+
66
+ ![ Updating a workspace] ( ../../images/workspace-update.png )
67
+
68
+ If the workspace is running, Coder stops it, updates it, then starts the
69
+ workspace again.
70
+
71
+ ### Updating via the CLI
72
+
73
+ Update a workspace through the command line:
74
+
75
+ ``` shell
76
+ coder update < workspace-name>
77
+ ```
78
+
61
79
### Automatic updates
62
80
63
81
It can be tedious to manually update a workspace everytime an update is pushed
@@ -70,6 +88,19 @@ manually updated the workspace.
70
88
71
89
![ Automatic Updates] ( ./images/workspace-automatic-updates.png )
72
90
91
+ ## Bulk operations (enterprise)
92
+
93
+ Enterprise admins may apply bulk operations (update, delete, start, stop) in the
94
+ ** Workspaces** tab. Select the workspaces you'd like to modify with the
95
+ checkboxes on the left, then use the top-right ** Actions** dropdown to apply the
96
+ operation.
97
+
98
+ The start and stop operations can only be applied to a set of workspaces which
99
+ are all in the same state. For update and delete, the user will be prompted for
100
+ confirmation before any action is taken.
101
+
102
+ ![ Bulk workspace actions] ( ../../images/user-guides/workspace-bulk-actions.png )
103
+
73
104
## Starting and stopping workspaces
74
105
75
106
By default, you manually start and stop workspaces as you need. You can also
@@ -95,3 +126,52 @@ available.
95
126
Resources are often destroyed and re-created when a workspace is restarted,
96
127
though the exact behavior depends on the template. For more information, see
97
128
[ Resource Persistence] ( ./admin/templates/extending-templates/resource-persistence.md ) .
129
+
130
+ ## Repairing workspaces
131
+
132
+ Use the following command to re-enter template input variables in an existing
133
+ workspace. This command is useful when a workspace fails to build because its
134
+ state is out of sync with the template.
135
+
136
+ ``` shell
137
+ coder update < your workspace name> --always-prompt
138
+ ```
139
+
140
+ First, try re-entering parameters from a workspace. In the Coder UI, you can
141
+ filter your workspaces using pre-defined filters or employing the Coder's filter
142
+ query. Take a look at the following examples to understand how to use the
143
+ Coder's filter query:
144
+
145
+ - To find the workspaces that you own, use the filter ` owner:me ` .
146
+ - To find workspaces that are currently running, use the filter
147
+ ` status:running ` .
148
+
149
+ ![ Re-entering template variables] ( ../../images/templates/template-variables.png )
150
+
151
+ You can also do this in the CLI with the following command:
152
+
153
+ ``` shell
154
+ coder update < your workspace name> --always-prompt
155
+ ```
156
+
157
+ If that does not work, a Coder admin can manually push and pull the Terraform
158
+ state for a given workspace. This can lead to state corruption or deleted
159
+ resources if you do not know what you are doing.
160
+
161
+ ``` shell
162
+ coder state pull < username> /< workspace name>
163
+ # Make changes
164
+ coder state push < username> /< workspace name>
165
+ ```
166
+
167
+ ## Logging
168
+
169
+ Coder stores macOS and Linux logs at the following locations:
170
+
171
+ | Service | Location |
172
+ | ----------------- | -------------------------------- |
173
+ | ` startup_script ` | ` /tmp/coder-startup-script.log ` |
174
+ | ` shutdown_script ` | ` /tmp/coder-shutdown-script.log ` |
175
+ | Agent | ` /tmp/coder-agent.log ` |
176
+
177
+ > Note: Logs are truncated once they reach 5MB in size.
0 commit comments