alpine

Docker Alpine linux running 2 programs

夙愿已清 提交于 2019-12-29 07:11:58
问题 I am trying to create docker image with alpine linux, which after run will create container with 2 running programs. This 2 (in my opinion - I don't know docker well) can't be separated because first program changes the seconds configuration file and then should restart that program too. I am struggling how to run both programs. I have added own script which should run that programs but I am missing something - script is 2 lines on each line is command for running that program - and it only

Could not initialize class sun.awt.X11FontManager using openjdk 8 on alpine linux

社会主义新天地 提交于 2019-12-24 10:13:57
问题 I'm getting this stack trace when using openjdk 8 with this docker image: openjdk:8-jre-alpine java.lang.NoClassDefFoundError: Could not initialize class sun.awt.X11FontManager at java.lang.Class.forName0(Native Method) [rt.jar:1.8.0_131] at java.lang.Class.forName(Class.java:348) [rt.jar:1.8.0_131] at sun.font.FontManagerFactory$1.run(FontManagerFactory.java:82) [rt.jar:1.8.0_131] at java.security.AccessController.doPrivileged(Native Method) [rt.jar:1.8.0_131] at sun.font.FontManagerFactory

ERROR: unsatisfiable constraints: while installing package in alpine

烂漫一生 提交于 2019-12-24 08:52:52
问题 I am trying to build a docker image based on Alpine and I need to install few packages in it. Here is exactly what I am trying to do: FROM alpine:latest RUN apk --no-cache add ca-certificates=20161130-r2 openssl=1.0.2k-r0 But when I run docker build, here is the error I get: RUN apk --no-cache add ca-certificates=20161130-r2 openssl=1.0.2k-r0 ---> Running in a061dcd5071e fetch http://dl-cdn.alpinelinux.org/alpine/v3.7/main/x86_64/APKINDEX.tar.gz fetch http://dl-cdn.alpinelinux.org/alpine/v3.7

docker-compose inside Alpine container

情到浓时终转凉″ 提交于 2019-12-24 01:29:11
问题 I'm attempting to bundle my app (code, Dockerfiles and a docker-compose script) together inside a single image for easy deployment (entrypoint will just docker-compose up ). My Dockerfile for this top level app image looks like so FROM alpine:latest COPY . /app RUN apk update && apk add --no-cache docker py-pip openrc && pip install docker-compose When I run this image, it seems that dockerd hasn't started, being absent from top results; docker ps reports "Cannot connect to the Docker daemon

Error: spawn /data/craft/templates/node_modules/optipng-bin/vendor/optipng ENOENT

霸气de小男生 提交于 2019-12-24 01:18:38
问题 I try to run the $ npm run prod in an Alpine Linux container and get an error. I followed the procedure, In the /data directory of the linux, I run the command $ apk add --update nodejs nodejs-npm which install the node and the npm in the container I enter inside the /data/craft/templets directory and run the command $ npm install In the same location, I run the command $ npm run prod I get the error stack, bash-4.3# npm run prod > welance-craft-base-template@0.2.0 prod /data/craft/templates

Errors when building glibc on Alpine Linux

隐身守侯 提交于 2019-12-24 00:58:39
问题 I am trying to install glibc on Alpine Linux. I am running Alpine Linux in the Docker. Here are the steps I am using: docker pull alpine docker run -it alpine /bin/sh apk add --no-cache make gcc linux-headers bsd-compat-headers gawk bison binutils coreutils diffutils gettext bash grep sed texinfo perl wget https://ftp.gnu.org/gnu/glibc/glibc-2.28.tar.gz tar -xzf glibc-2.28.tar.gz cd glibc-2.28 mkdir glibc-build cd glibc-build ../configure --prefix=/usr \ --disable-profile --enable-add-ons \ -

tar EPERM: operation not permitted, futime

萝らか妹 提交于 2019-12-23 21:24:32
问题 I have a node:alpine Docker image. When I run the image as a root user, I have no problems, but when I use another user and I try to do npm install I receive a lot of errors from package extraction: npm WARN tar EPERM: operation not permitted, futime After 5000 WARN messages, I see this on the npm install log: npm timing action:extract Completed in 276816ms npm timing action:finalize Completed in 172ms And no more, the npm install process is completely hang. Anybody knows this error and know

How do I install msodbcsql17 driver for alpine linux?

白昼怎懂夜的黑 提交于 2019-12-23 13:59:11
问题 I found a related issue on github but it is under the msphpsql repo so I'm not sure if it applies to the driver in general for alpine. It says MS does not support yet. Official MS installation page has installation instructions only for Debian, RedHat, SUSE, Ubuntu. If there are any workarounds, please suggest. If this is not possible, please elaborate your answer as technically as possible. I could not find a suitable answer for this question anywhere. 来源: https://stackoverflow.com/questions

UnsatisfiedLinkError when running jpenable in alpine / Jprofile 10

泄露秘密 提交于 2019-12-22 14:04:04
问题 When running jpenable to permit profiling for Jprofiler10 in an alpine:3.3 container running JDK 8, I'm getting an UnsatisfiedLinkError exception. Any ideas? ERROR: The agent could not be loaded: Picked up _JAVA_OPTIONS: -Xmx1024m Exception in thread "main" java.lang.UnsatisfiedLinkError: /opt/jprofiler10/bin/ linux-x64/libattach.so: Error relocating /opt/jprofiler10/bin/linux-x64/libattac h.so: __strcpy_chk: symbol not found at java.lang.ClassLoader$NativeLibrary.load(Native Method) at java

Cannot connect to Azure SQL using an alpine docker image with Python

浪子不回头ぞ 提交于 2019-12-22 12:54:20
问题 I have an alpine based docker image, with support for Python, through which I am trying to connect to Azure SQL service. Here is my simple connection code. I am getting an error when connecting to SQL server in Azure. conn = pyodbc.connect('DRIVER='+driver+';SERVER='+server+';PORT=1433;DATABASE='+database+';UID='+username+';PWD='+ password) pyodbc.Error: ('01000', "[01000] [unixODBC][Driver Manager]Can't open lib 'ODBC Driver 17 for SQL Server' : file not found (0) (SQLDriverConnect)")nect)")