当我使用以下图像时:node:6.11.0-alpine运行我的服务(使用GRPC),然后继续收到以下警告:
D0622 06:52:01.170502843 1 env_linux.c:66] Warning: insecure environment read function 'getenv' used
D0622 06:52:01.554446816 12 env_linux.c:66] Warning: insecure environment read function 'getenv' used
D0622 06:52:01.559295167 14 env_linux.c:66] Warning: insecure environment read function 'getenv' used
D0622 06:52:01.566036292 13 env_linux.c:66] Warning: insecure environment read function 'getenv' used
D0622 06:52:01.569975088 15 env_linux.c:66] Warning: insecure environment read function 'getenv' used
Run Code Online (Sandbox Code Playgroud)
我会错过任何包裹吗?如何解决这个问题?
可以参考此问题#8104。
我的 Dockerfile 中有以下代码:
FROM alpine/git as clone
WORKDIR /app
RUN git clone https://github.com/spring-projects/spring-petclinic.git
Run Code Online (Sandbox Code Playgroud)
但是,我收到此错误:
fatal: unable to access 'https://github.com/spring-projects/spring-petclinic.git/': SSL certificate problem: self signed certificate in certificate chain
Run Code Online (Sandbox Code Playgroud)
我实际上有一个本地 git,我无法禁用 SSL 证书。
I am using openjdk:8-alpine for deploying Kafka Streams application. I am using Windowing and it crashes with below error:
Exception in thread "app-4a382bdc55ae-StreamThread-1" java.lang.UnsatisfiedLinkError: /tmp/librocksdbjni94709417646402513.so: Error loading shared library ld-linux-x86-64.so.2: No such file or directory (needed by /tmp/librocksdbjni94709417646402513.so)
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1941)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1824)
at java.lang.Runtime.load0(Runtime.java:809)
at java.lang.System.load(System.java:1086)
at org.rocksdb.NativeLibraryLoader.loadLibraryFromJar(NativeLibraryLoader.java:78)
at org.rocksdb.NativeLibraryLoader.loadLibrary(NativeLibraryLoader.java:56)
at org.rocksdb.RocksDB.loadLibrary(RocksDB.java:64)
at org.rocksdb.RocksDB.<clinit>(RocksDB.java:35)
at org.rocksdb.Options.<clinit>(Options.java:22)
at org.apache.kafka.streams.state.internals.RocksDBStore.openDB(RocksDBStore.java:116)
at org.apache.kafka.streams.state.internals.Segment.openDB(Segment.java:43)
at org.apache.kafka.streams.state.internals.Segments.getOrCreateSegment(Segments.java:91)
at org.apache.kafka.streams.state.internals.RocksDBSegmentedBytesStore.put(RocksDBSegmentedBytesStore.java:100)
at org.apache.kafka.streams.state.internals.RocksDBSessionStore.put(RocksDBSessionStore.java:122)
at org.apache.kafka.streams.state.internals.ChangeLoggingSessionBytesStore.put(ChangeLoggingSessionBytesStore.java:78)
at org.apache.kafka.streams.state.internals.ChangeLoggingSessionBytesStore.put(ChangeLoggingSessionBytesStore.java:33)
at org.apache.kafka.streams.state.internals.CachingSessionStore.putAndMaybeForward(CachingSessionStore.java:177)
at org.apache.kafka.streams.state.internals.CachingSessionStore.access$000(CachingSessionStore.java:38)
at org.apache.kafka.streams.state.internals.CachingSessionStore$1.apply(CachingSessionStore.java:88)
at …Run Code Online (Sandbox Code Playgroud) apache-kafka docker rocksdb alpine-linux apache-kafka-streams
我有一个应用程序,它使用基于 alpine 的图像,并且我在给定目录(/usr/bin/chromedriver/linux64/2.45/chromedriver)中有具有 755 权限的 chrome 驱动程序。
我得到以下错误:
chromedriver-docker-example_1 | 2019-03-20 05:05:50.316 ERROR 21 --- [ null to remote] org.openqa.selenium.os.OsProcess : org.apache.commons.exec.ExecuteException: Execution failed (Exit value: -559038737. Caused by java.io.IOException: Cannot run program "/usr/bin/chromedriver/linux64/2.45/chromedriver" (in directory "."): error=2, No such file or directory)
Run Code Online (Sandbox Code Playgroud)
可以请任何人帮忙吗?
webdriver selenium-chromedriver selenium-webdriver docker alpine-linux
我使用 alpine linux 作为基础镜像,我需要安装一个 oracle 客户端原生库。我相信你可以从这里下载:
https://www.oracle.com/technetwork/topics/linuxx86-64soft-092277.html
看起来我必须登录才能下载,有人知道如何在不登录的情况下下载客户端库的 zip 文件吗?
有谁知道如何在 bash 脚本或 dockerfile 中正确安装客户端库?
我试图找出一种方法,可以在轻量级 alpine docker 映像中安装 python2.7 和 3.7。
目前我正在使用
FROM python:3.7-alpine3.9
Run Code Online (Sandbox Code Playgroud)
基本映像,但也想知道如何安装 python2。
当我尝试构建包含 sklearn 包的基于 alpine 的 docker 映像时出现错误。
我尝试了 pip 安装的一些变体、不同的包组合和过时的 sklearn 版本,以查看它们是否兼容。我还在 -it 模式下运行容器并尝试从那里手动安装包。当我删除 sklearn 行时,Dockerfile 构建并且容器运行得很好。Sklearn 在 Ubuntu 中工作:我构建的最新 Dockerfile,但我试图减少我的足迹,所以我希望让它在 alpine 上工作......
这是我的 Dockerfile 代码:
FROM alpine:latest
RUN apk upgrade --no-cache \
&& apk update \
&& apk add --no-cache \
musl \
build-base \
python3 \
python3-dev \
postgresql-dev \
bash \
git \
&& pip3 install --no-cache-dir --upgrade pip \
&& pip3 install sklearn \
&& rm -rf /var/cache/* \
&& rm -rf /root/.cache/*
Run Code Online (Sandbox Code Playgroud)
这是我得到的错误:
ERROR: Command …Run Code Online (Sandbox Code Playgroud) 这里完全是锈菜鸟。尝试为 linux x64 构建一个 sccache 二进制文件Redis: true。我从一个高山图像开始:
FROM rust:alpine3.10
WORKDIR /root
RUN apk --no-cache add --update curl
RUN curl -L https://github.com/mozilla/sccache/archive/0.2.11.tar.gz \
-o sccache.tar.gz
RUN tar xf sccache.tar.gz
RUN cd sccache-0.2.11 &&\
cargo build --features=all --release
Run Code Online (Sandbox Code Playgroud)
我得到:
error: cannot produce proc-macro for `derive-error v0.0.3` as the target `x86_64-unknown-linux-musl` does not support these crate types
Run Code Online (Sandbox Code Playgroud)
如果FROM rust基于buster. 我可以只用这个(我会),但是这里发生了什么?我太不自在了,我什至不知道该问什么问题。
我安装 py3-pandas 如下,
FROM alpine:latest
RUN echo "http://dl-8.alpinelinux.org/alpine/edge/testing" >> /etc/apk/repositories
RUN echo "http://dl-8.alpinelinux.org/alpine/edge/community" >> /etc/apk/repositories
RUN apk add --update \
python3 \
python3-dev \
py3-numpy py3-pandas py3-scipy py3-numpy-dev
Run Code Online (Sandbox Code Playgroud)
然后我尝试导入熊猫,它不可用
bash-5.0# python3
Python 3.7.5 (default, Oct 17 2019, 12:25:15)
[GCC 8.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import pandas
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ModuleNotFoundError: No module named 'pandas'
>>> import sys
>>> sys.path
['', '/usr/lib/python37.zip', '/usr/lib/python3.7', '/usr/lib/python3.7/lib-dynload', '/usr/lib/python3.7/site-packages', …Run Code Online (Sandbox Code Playgroud) 使用 ruby-2.6.6-alpine 的 Docker 镜像创建了一个 498mb 的镜像大小。但是,当我降级到 ruby-2.6.5-alpine 时,它又回到了 266mb。2.6.6 版本几乎是其两倍。为什么会这样?
# RESULTS IN 266MB
FROM ruby:2.6.5-alpine
RUN apk add --update --no-cache \
build-base \
postgresql-dev \
vim \
tzdata \
bash \
less
# RESULTS IN 498MB
FROM ruby:2.6.6-alpine
RUN apk add --update --no-cache \
build-base \
postgresql-dev \
vim \
tzdata \
bash \
less
Run Code Online (Sandbox Code Playgroud) alpine-linux ×10
docker ×9
dockerfile ×3
python ×2
apache-kafka ×1
getenv ×1
git ×1
oracle ×1
oracleclient ×1
pandas ×1
python-3.x ×1
rocksdb ×1
ruby ×1
rust ×1
rust-cargo ×1
scikit-learn ×1
ssl ×1
webdriver ×1