File tree Expand file tree Collapse file tree 2 files changed +60
-0
lines changed Expand file tree Collapse file tree 2 files changed +60
-0
lines changed Original file line number Diff line number Diff line change
1
+ # Install and test coder-preview
2
+
3
+ Use Docker to install and test a
4
+ [ preview release of Coder] ( https://github.com/coder/coder/pkgs/container/coder-preview ) .
5
+
6
+ These steps are not intended for use in production deployments.
7
+ If you want to install the latest version of Coder, use the [ quickstart guide] ( ../tutorials/quickstart.md ) .
8
+
9
+ 1 . Install Docker:
10
+
11
+ ``` bash
12
+ curl -sSL https://get.docker.com | sh
13
+ ```
14
+
15
+ For more details, visit:
16
+
17
+ - [Linux instructions](https://docs.docker.com/desktop/install/linux-install/)
18
+ - [Mac instructions](https://docs.docker.com/desktop/install/mac-install/)
19
+
20
+ 1. Assign your user to the Docker group:
21
+
22
+ ` ` ` shell
23
+ sudo usermod -aG docker $USER
24
+ ` ` `
25
+
26
+ 1. Run ` newgrp` to activate the groups changes:
27
+
28
+ ` ` ` shell
29
+ newgrp docker
30
+ ` ` `
31
+
32
+ You might need to log out and back in or restart the machine for changes to take effect.
33
+
34
+ 1. Install Coder via ` docker run` with latest preview from [coder-preview](https://github.com/coder/coder/pkgs/container/coder-preview):
35
+
36
+ 1. ` ` ` shell
37
+ export CODER_DATA=$HOME /.config/coderv2-docker
38
+ ` ` `
39
+
40
+ 1. ` ` ` shell
41
+ export DOCKER_GROUP=$( getent group docker | cut -d: -f3)
42
+ ` ` `
43
+
44
+ 1. ` ` ` shell
45
+ mkdir -p $CODER_DATA
46
+ ` ` `
47
+
48
+ 1. ` ` ` shell
49
+ docker run --rm -it \
50
+ -v $CODER_DATA :/home/coder/.config \
51
+ -v /var/run/docker.sock:/var/run/docker.sock \
52
+ --group-add $DOCKER_GROUP \
53
+ ghcr.io/coder/coder-preview:pr16309
54
+ ` ` `
Original file line number Diff line number Diff line change 96
96
"path" : " ./install/uninstall.md" ,
97
97
"icon_path" : " ./images/icons/trash.svg"
98
98
},
99
+ {
100
+ "title" : " Install and test coder-preview" ,
101
+ "description" : " Test the latest coder-preview build" ,
102
+ "path" : " ./install/coder-preview-docker.md" ,
103
+ "icon_path" : " ./images/icons/contributing.svg"
104
+ },
99
105
{
100
106
"title" : " Releases" ,
101
107
"description" : " Learn about the Coder release channels and schedule" ,
You can’t perform that action at this time.
0 commit comments