我正在尝试在 Alpine Linux 上编译 Mongo。
有人知道如何克服这个错误吗?
In file included from src/mongo/util/net/socket_poll.h:20:0,
from src/mongo/util/net/sock.cpp:42:
/usr/include/sys/poll.h:1:2: error: #warning redirecting incorrect #include <sys/poll.h> to <poll.h> [-Werror=cpp]
#warning redirecting incorrect #include <sys/poll.h> to <poll.h>
^
cc1plus: all warnings being treated as errors
scons: *** [build/linux2/normal/mongo/util/net/sock.o] Error 1
scons: building terminated because of errors.
Run Code Online (Sandbox Code Playgroud) 尝试通过以下方式构建救援 iso
https://wiki.alpinelinux.org/wiki/How_to_make_a_custom_ISO_image
(alpine-extended-3.4.3-x86.iso之前安装到硬盘上使用)
当启动新创建的映像时,它会在启动提示后立即抱怨。我应该怎么做才能创建正确的 ISO 映像?
我正在尝试在高山上安装git 3.6.它Protocol error在第一个实例中失败但在第二个实例上工作.具体pcre而libcurl不是在第一个实例中安装.这是我想要做的日志.
$ docker run -it alpine:3.6 /bin/sh
/ # apk --update add git
fetch http://dl-cdn.alpinelinux.org/alpine/v3.6/main/x86_64/APKINDEX.tar.gz
fetch http://dl-cdn.alpinelinux.org/alpine/v3.6/community/x86_64/APKINDEX.tar.gz
(1/6) Installing ca-certificates (20161130-r2)
(2/6) Installing libssh2 (1.8.0-r1)
(3/6) Installing libcurl (7.56.1-r0)
ERROR: libcurl-7.56.1-r0: Protocol error
(4/6) Installing expat (2.2.0-r1)
(5/6) Installing pcre (8.41-r0)
ERROR: pcre-8.41-r0: Protocol error
(6/6) Installing git (2.13.5-r0)
Executing busybox-1.26.2-r9.trigger
Executing ca-certificates-20161130-r2.trigger
2 errors; 24 MiB in 15 packages
/ # git
Error loading shared library libpcre.so.1: No such file …Run Code Online (Sandbox Code Playgroud) 我遇到一种情况,node当在基于Alpine 3.6的Docker容器中的Kubernetes下运行时,版本8崩溃了,但是不在本地。我怀疑某种内存损坏或库不匹配或同样奇怪的事情,因为崩溃是不可复制的,并且我尝试过的任何日志记录都无法在崩溃之前记录问题。我设法生成了一个核心转储,但是现在我找不到任何从核心转储中获取堆栈跟踪的方法。
lldb可用的软件包,因此我无法llnode在其上运行segfault-handler或)node-report也不起作用,因为Alpine 3.6忽略了backtraceAPI。有什么方法可以从Alpine 3.6下由Node.js版本8生成的核心转储中获取堆栈跟踪?
我正在尝试对Vue.js应用程序进行Docker化。我正在使用node:10.15-alpineDocker映像作为基础。映像生成失败,并出现以下错误:
gyp ERR! configure error
gyp ERR! stack Error: Can't find Python executable "python", you can set the PYTHON env variable.
gyp ERR! stack at PythonFinder.failNoPython (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:484:19)
gyp ERR! stack at PythonFinder.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:406:16)
gyp ERR! stack at F (/usr/local/lib/node_modules/npm/node_modules/which/which.js:68:16)
gyp ERR! stack at E (/usr/local/lib/node_modules/npm/node_modules/which/which.js:80:29)
gyp ERR! stack at /usr/local/lib/node_modules/npm/node_modules/which/which.js:89:16
gyp ERR! stack at /usr/local/lib/node_modules/npm/node_modules/isexe/index.js:42:5
gyp ERR! stack at /usr/local/lib/node_modules/npm/node_modules/isexe/mode.js:8:5
gyp ERR! stack at FSReqWrap.oncomplete (fs.js:154:21)
gyp ERR! System Linux 4.9.125-linuxkit
gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp …Run Code Online (Sandbox Code Playgroud) 我正在 Docker Alpine 镜像中编写一个简单的网络爬虫。但是,我无法将 HTTPS 请求发送到仅支持 TLS1.0 的服务器。如何配置 Alpine linux 以允许过时的 TLS 版本?
我尝试添加MinProtocol但/etc/ssl/openssl.cnf没有运气。
Dockerfile 示例:
FROM node:12.0-alpine
RUN printf "[system_default_sect]\nMinProtocol = TLSv1.0\nCipherString = DEFAULT@SECLEVEL=1" >> /etc/ssl/openssl.cnf
CMD ["/usr/bin/wget", "https://www.restauracesalanda.cz/"]
Run Code Online (Sandbox Code Playgroud)
当我构建并运行这个容器时,我得到
Connecting to www.restauracesalanda.cz (93.185.102.124:443)
ssl_client: www.restauracesalanda.cz: handshake failed: error:1425F102:SSL routines:ssl_choose_client_version:unsupported protocol
wget: error getting response: Connection reset by peer
Run Code Online (Sandbox Code Playgroud) 在 Docker 中,我尝试运行 pip install ortools 但找不到。其他 pip 安装包可以完美运行。我在 Dockerfile 中使用“FROM python:3.6.8-alpine”
bash-4.4# pip install ortools
Collecting ortools
ERROR: Could not find a version that satisfies the requirement ortools (from versions: none)
ERROR: No matching distribution found for ortools
bash-4.4# pip install --upgrade pip
Requirement already up-to-date: pip in /usr/local/lib/python3.6/site-packages (19.1.1)
Run Code Online (Sandbox Code Playgroud)
根本原因: Gooogle OR 工具不支持 alpine,因为 alpine 不支持 pypi
这是基于https://testdriven.io/courses/microservices-with-docker-flask-and-react/
\n\n我正在运行一个指向entrypoint.sh 的docker 文件。
\n\n成功docker-compose-f docker-compose-dev.yml build run\n但正在运行docker-compose-f docker-compose-dev.yml up显示
ERROR: for users Cannot start service users: OCI runtime create failed: container_linux.go:345: starting container process caused "exec: \\"/usr/src/app/entrypoint.sh\\": permission denied": unknown\nERROR: Encountered errors while bringing up the project.\nRun Code Online (Sandbox Code Playgroud)\n\n我确实尝试使用docker run -it \xe2\x80\x93tty users_app:latest sh.\nRunning在交互模式下运行./entrypoint.sh运行确实有效。\n但它不适用于 docker-compose。
有人有同样的问题吗?
\n\n这是我的 docker-compose-dev.yml、Dockerfile-dev 和 entrypoint.sh
\n\ndocker-compose-dev.yml
\n\nversion: \'3.6\'\n\nservices:\n users:\n build:\n context: ./services/users\n dockerfile: Dockerfile-dev\n volumes:\n - \'./services/users:/usr/src/app\'\n ports:\n …Run Code Online (Sandbox Code Playgroud) 我正在尝试覆盖基于 alpine 的 pod 的 dnsconfig(特别是搜索域)。
但dnsconfig似乎在 pod 对象中可用。
无论如何,是否可以在部署对象中提供 dnsconfig 或任何其他解决方法来覆盖该特定 pod 的 searchdomain。
在Lubuntu上,我可以先安装Tor然后再连接到其袜子代理来使用tor,但是在带alpine的docker上,似乎并不那么容易。由于我按原样离开了/ etc / tor / torrc,所以它仅由注释掉的行组成。因此,对于高山用户,我只使用了torrc.sample仅包含注释掉的行的文件。
这是我的Dockerfile:
FROM alpine:latest
RUN apk update && apk upgrade && apk add tor curl && rm /var/cache/apk/* && cp /etc/tor/torrc.sample /etc/tor/torrc
EXPOSE 9050
USER tor
CMD /usr/bin/tor -f /etc/tor/torrc
Run Code Online (Sandbox Code Playgroud)
然后我就跑了:
$ sudo docker build -t tor .
$ sudo docker run --name tor -p 9050:9050 tor
$ curl -x socks5://localhost:9050 -k https://23.128.64.134/ip
curl: (7) Unable to receive initial SOCKS5 response.
$ curl -x socks4://localhost:9050 -k https://23.128.64.134/ip
curl: (7) Failed to …Run Code Online (Sandbox Code Playgroud)