alpine

alpine linux: pmap output not showing RSS

橙三吉。 提交于 2019-12-08 06:54:40
问题 I have a docker container running a base image of alpine linux and when I exec into the docker container and run the command: pmap -x [pid] The headers that I see in the output are: Address Kbytes PSS Dirty Swap Mode Mapping I am actually explicitly looking for RSS (Resident Set Size). Why is this header not showing up in the output? 回答1: If pmap does not display it in that particular docker image (Alpine), check if top if more complete in its output (as in this thread): vagrant@dockerdev:

Issue installing MongoDB on alpine

北慕城南 提交于 2019-12-08 05:08:20
问题 RUN echo 'http://dl-cdn.alpinelinux.org/alpine/v3.6/community' >> /etc/apk/repositories RUN apk update RUN apk add mongodb==3.4.4-r0 RUN mongo --version it show errors ERROR: unsatisfiable constraints: so:libboost_chrono-mt.so.1.62.0 (missing): required by: mongodb-3.4.4-r0[so:libboost_chrono-mt.so.1.62.0] so:libboost_filesystem-mt.so.1.62.0 (missing): required by: mongodb-3.4.4-r0[so:libboost_filesystem-mt.so.1.62.0] so:libboost_iostreams-mt.so.1.62.0 (missing): required by: mongodb-3.4.4-r0

Docker build error: “could not connect to server” (behind proxy)

时光毁灭记忆、已成空白 提交于 2019-12-07 16:28:47
问题 Context: OS: Windows 10 Pro; Docker ver: 18.09.0 (build 4d60db4); Behind corporate proxy, using CNTLM to solve this issue. (currently pulling / running image works fine) Problem: I was trying to build the following Dockerfile: FROM alpine:3.5 RUN apk add --update \ python3 RUN pip3 install bottle EXPOSE 8000 COPY main.py /main.py CMD python3 /main.py This is what I got: Sending build context to Docker daemon 11.26kB Step 1/6 : FROM alpine:3.5 ---> dc496f71dbb5 Step 2/6 : RUN apk add --update

Program segfaults on alpine linux. How do I resolve it?

蓝咒 提交于 2019-12-07 13:04:58
问题 I've been working on a webrtc datachannel library in C/C++ and wrote a program in C to: Create two peers from the same process. Establish a connection between them. Close the connection if it's successful. Everything runs fine on a debian docker container and on my host opensuse tumbleweed (all x86_64 and 64bit), but on alpine linux container (64bit x86_64), I'm getting a SEGFAULT inside the child processes: The function above is from the program's dependency "libnice". It seems like *agent =

alpine package py-pip missing

╄→尐↘猪︶ㄣ 提交于 2019-12-06 16:47:51
问题 Im trying to install python pip in my alpine using Docker compose file but get the following error. ERROR: unsatisfiable constraints: py-pip (missing): required by: world[py-pip] ERROR: Service 'web' failed to build: The command '/bin/sh -c apk add py-pip' returned a non-zero code: 1 回答1: Do update first: apk add --update py-pip Or: apk update apk add py-pip 回答2: For python3 on alpine edge: apk add py3-setuptools 回答3: For me --no-cache option worked. apk add --no-cache py-pip 来源: https:/

Add mod_rewrite to Docker image httpd:alpine

六月ゝ 毕业季﹏ 提交于 2019-12-06 13:37:34
问题 I have almost no experience with Alpine Linux, to be honest, but I like its approach and therefore want to change that. I'm also relatively new to Docker, so please bear with me if this is a "stupid" question. What I would like to achieve is building upon the httpd:alpine image and extending the HTTPd to my needs. That would include activating the mod_rewrite module and copying a custom .htaccess into the image. Here is what I have so far: FROM httpd:alpine # Copy .htaccess into DocumentRoot

Docker build error: “could not connect to server” (behind proxy)

£可爱£侵袭症+ 提交于 2019-12-06 02:16:51
Context: OS: Windows 10 Pro; Docker ver: 18.09.0 (build 4d60db4); Behind corporate proxy, using CNTLM to solve this issue . (currently pulling / running image works fine) Problem: I was trying to build the following Dockerfile: FROM alpine:3.5 RUN apk add --update \ python3 RUN pip3 install bottle EXPOSE 8000 COPY main.py /main.py CMD python3 /main.py This is what I got: Sending build context to Docker daemon 11.26kB Step 1/6 : FROM alpine:3.5 ---> dc496f71dbb5 Step 2/6 : RUN apk add --update python3 ---> Running in 7f5099b20192 fetch http://dl-cdn.alpinelinux.org/alpine/v3.5/main/x86_64

Program segfaults on alpine linux. How do I resolve it?

China☆狼群 提交于 2019-12-06 02:02:47
I've been working on a webrtc datachannel library in C/C++ and wrote a program in C to: Create two peers from the same process. Establish a connection between them. Close the connection if it's successful. Everything runs fine on a debian docker container and on my host opensuse tumbleweed (all x86_64 and 64bit), but on alpine linux container (64bit x86_64), I'm getting a SEGFAULT inside the child processes: The function above is from the program's dependency "libnice". It seems like *agent == NULL and there is no way that is made null in the caller's scope. I even inserted a printf("Argument

Docker image with python & alpine failure due missing compiler error

佐手、 提交于 2019-12-05 20:14:31
问题 I'm looking for a docker image with both python3 and a crontab. When I use python:latest as a base, I have no cron, but all required python packages install without problem. When I use alpine as a base I have the (busybox) cron working, but are unable to install specific python package due to compiler error. The same applies when I use python:alpine . Collecting pynacl>=1.0.1 (from paramiko->-r required_python_packages.txt (line 6)) Downloading PyNaCl-1.1.2.tar.gz (3.1MB) Complete output from

How can I get process name of specific PID with ps command in alpine

会有一股神秘感。 提交于 2019-12-05 09:19:45
In ubuntu based docker/os $ ps PID USER TIME COMMAND 1 postgres 0:00 postgres 47 postgres 0:00 postgres: checkpointer process 48 postgres 0:00 postgres: writer process 49 postgres 0:00 postgres: wal writer process 50 postgres 0:00 postgres: autovacuum launcher process 51 postgres 0:00 postgres: stats collector process 52 postgres 0:00 postgres: bgworker: logical replication launcher Now If run ps -p 1 -o user= , it will get me PID 1 process USER postgres $ ps -p 1 -o user= postgres This is what I can do in ubuntu based image/os Now I am really seeking for a way to do the same for alpine based