您的位置:时时app平台注册网站 > 时时app平台注册网站 > Eclipse Che:在线的WebIDE

Eclipse Che:在线的WebIDE

2019-12-06 12:28

You need to add user into docker group. by 'sudo gpasswd -a xxxx docker' (xxx is your user name)
Then restart your computer
This problem should be solved

Dashboard

将眼下顾客步向docker组

sudo gpasswd -a ${USER} docker

docker安装后边世Cannot connect to the Docker daemon

终极公布下个人的视角:eclipse/che即使是个好的在线WebIDE,但是却不实际,开荒的话依旧在地尾陈设IDE比较好。

创建docker组

sudo groupadd docker

启动docker

Workspaces

平时说来大家选取Docker的时候都以接受的root,官方说法如下:

service docker start

官网:https://www.eclipse.org/che/
<h1>使用Docker部署</h1>
先创立文件夹贮存文件,用时挂载。
$~ mkdir /home/user/che
$~ mkdir /home/user/che/lib
$~ mkdir /home/user/che/workspaces
$~ mkdir /home/user/che/tomcat
$~ mkdir /home/user/che/tomcat/temp
$~ mkdir /home/user/che/tomcat/temp/local-storage
</br>
接着 拉取docker镜像
$~ docker pull codenvy/che
$~ docker pull codenvy/che-server
</br>
<h3>最终 举行安顿</h3>
docker run -p 8888:8080 -p 49152-49162:49152-49162 -ti
-v /var/run/docker.sock:/var/run/docker.sock
-v /home/user/che/lib:/home/user/che/lib-copy
-v /home/user/che/workspaces:/home/user/che/workspaces
-v /home/user/che/tomcat/temp/local-storage:/home/user/che/tomcat/temp/local-storage
codenvy/che start

重新启航docker服务(下边是CentOS7的一声令下)

sudo systemctl restart docker

图片 1

下边是应用非root顾客操作的步骤

参照他事他说加以考查网址:https://blog.codenvy.com/eclipse-che-and-codenvy-on-docker-78dd9f8a45b4
https://www.eclipse.org/che/docs/setup/getting-started/
(注:直接根据docker hub给的形式docker run -i -t -p 8080:8080 -p 49152-49162:49152-49162 codenvy/che 运维, 会不成功卡塔尔(قطر‎

方今客户退出系统重新登入

图片 2

The docker daemon binds to a Unix socket instead of a TCP port. By default that Unix socket is owned by the user root and other users can access it with sudo. For this reason, docker daemon always runs as the root user.
To avoid having to use sudo when you use the docker command, create a Unix group called docker and add users to it. When the docker daemon starts, it makes the ownership of the Unix socket read/writable by the docker group.

PersonalSetting

运行docker命令

docker ps

转发请以链接情势申明本文链接
本文链接:http://blog.csdn.net/kongxx/article/details/52413332

图片 3

本文由时时app平台注册网站发布于时时app平台注册网站,转载请注明出处:Eclipse Che:在线的WebIDE

关键词: