小编use*_*553的帖子

在Docker中运行Chromium - Gtk:无法打开display :: 0

当我尝试在docker容器中运行chrome时,我看到以下错误:Gtk:无法打开display :: 0

Dockerfile :(基于https://registry.hub.docker.com/u/jess/chromium/dockerfile)

FROM debian:jessie

# Install Chromium
RUN sed -i.bak 's/jessie main/jessie main contrib non-free/g' /etc/apt/sources.list && \
    apt-get update && apt-get install -y \
    chromium \
    chromium-l10n \
    libcanberra-gtk-module \
    libexif-dev \
    libpango1.0-0 \
    libv4l-0 \
    pepperflashplugin-nonfree \                                                                          
    --no-install-recommends && \
    mkdir -p /etc/chromium.d/

# Autorun x11vnc
CMD ["/usr/bin/chromium", "--no-sandbox", "--user-data-dir=/data"]
Run Code Online (Sandbox Code Playgroud)

构建和运行:

docker build -t chromium
docker run -e DISPLAY=$DISPLAY -v /tmp/.X11-unix:/tmp/.X11-unix --privileged chromium
Run Code Online (Sandbox Code Playgroud)

和错误:

[1:1:0202/085603:ERROR:browser_main_loop.cc(164)] Running without the SUID sandbox! See https://code.google.com/p/chromium/wiki/LinuxSUIDSandboxDevelopment for …
Run Code Online (Sandbox Code Playgroud)

x11 chromium docker

36
推荐指数
4
解决办法
4万
查看次数

x509:由未知权限签名的证书 - 包括docker和github

docker build -t oreng/iojs .

INFO[0000] Get https://index.docker.io/v1/repositories/library/iojs/images: x509: certificate signed by unknown authority. 
Run Code Online (Sandbox Code Playgroud)

我的Dockerfile是

FROM iojs:latest
RUN useradd -ms /bin/bash developer
WORKDIR /home/developer
USER developer
Run Code Online (Sandbox Code Playgroud)

另外hub create(使用https://github.com/github/hub)

Post https://api.github.com/user/repos: x509: certificate signed by unknown authority 
Run Code Online (Sandbox Code Playgroud)

github x509 docker

20
推荐指数
3
解决办法
4万
查看次数

我的ca-certificates.crt问题

(我在Ubuntu 14.10上.uname -r => 3.16.0-31-generic)

apt-get update

Failed to fetch https://get.docker.com/ubuntu/dists/docker/main/binary-amd64/Packages  server certificate verification failed. CAfile: /etc/ssl/certs/ca-certificates.crt CRLfile: none.
Run Code Online (Sandbox Code Playgroud)

git clone https://github.com/sdelements/lets-chat.git

I can't clone anything - fatal: unable to access 'https://github.com/sdelements/lets-chat.git/': server certificate verification failed. CAfile: /etc/ssl/certs/ca-certificates.crt CRLfile: none.
Run Code Online (Sandbox Code Playgroud)

docker run hello-world

Get https://index.docker.io/v1/repositories/library/hello-world/images: x509: certificate signed by unknown authority.
Run Code Online (Sandbox Code Playgroud)

ls /etc/ssl/certs/ca-certificates.crt -l

-rw-r--r-- 1 root root 1964 Mar 26 18:19 /etc/ssl/certs/ca-certificates.crt
Run Code Online (Sandbox Code Playgroud)

任何线索将不胜感激.

ubuntu ssl ca

9
推荐指数
2
解决办法
2万
查看次数

尝试使用 npx 创建 React 应用程序时,我收到各种警告和错误

我正在尝试使用 npx 创建 react 应用程序并收到以下错误: error fork-ts-checker-webpack-plugin@1.5.0: The engine "yarn" is incompatible with this module. Expected version ">=1.0.0".

任何想法可能是问题的根源?任何提示将不胜感激。谢谢!

npx create-react-app 食物

npx: installed 91 in 5.566s

Creating a new React app in /home/oren/m/code/food.

Installing packages. This might take a couple of minutes.
Installing react, react-dom, and react-scripts...

yarn add v0.16.1
[1/4] Resolving packages...
[2/4] Fetching packages...
warning fsevents@1.2.9: The platform "linux" is incompatible with this module.
info "fsevents@1.2.9" is an optional dependency and failed compatibility check. Excluding it from …
Run Code Online (Sandbox Code Playgroud)

linux reactjs

2
推荐指数
1
解决办法
2309
查看次数

标签 统计

docker ×2

ca ×1

chromium ×1

github ×1

linux ×1

reactjs ×1

ssl ×1

ubuntu ×1

x11 ×1

x509 ×1