alpine

How to install Go in alpine linux

无人久伴 提交于 2020-06-24 08:11:22
问题 I am trying to install Go inside an Alpine Docker image. For that I downloaded tar file from here inside my alpine docker image, untar it using following command: tar -C /usr/local -xzf go1.10.3.linux-amd64.tar.gz exported PATH to have go binary as: export PATH=$PATH:/usr/local/go/bin However, when I say go version then it says that sh: go: not found . I am quite new to alpine. Does anyone know, what I am missing here? Steps to reproduce- $ docker run -it alpine sh $ wget https://dl.google

Docker Alpine Linux python (missing)

一笑奈何 提交于 2020-06-22 14:14:20
问题 EDIT: To fix it you need to specify the version of Python directly, e.g.: apk add python2 apk add python3 I have a pipeline which deploys my container from GitLab. Last deployment was 5 days ago and went without any problems. Today I deploy it and get the following error: $ apk add --no-cache curl python py-pip fetch http://dl-cdn.alpinelinux.org/alpine/v3.12/main/x86_64/APKINDEX.tar.gz fetch http://dl-cdn.alpinelinux.org/alpine/v3.12/community/x86_64/APKINDEX.tar.gz ERROR: unsatisfiable

PHP HTTP extension on Docker alpine image

余生颓废 提交于 2020-06-17 04:13:59
问题 I am trying to install/enable the PHP http extension on my PHP alpine image. My composer.json file for my application contains "ext-http": "*" , hence my goal. My Dockerfile (relevant portions) is as follows: # PHP-FPM Base Image FROM php:7.2.26-fpm-alpine # Install PHP extensions RUN apk add --update --virtual .build-deps autoconf g++ make zlib-dev curl-dev \ && pecl install raphf propro \ && docker-php-ext-enable raphf propro \ && pecl install pecl_http \ && echo -e "extension=raphf.so

PHP HTTP extension on Docker alpine image

北城以北 提交于 2020-06-17 04:13:45
问题 I am trying to install/enable the PHP http extension on my PHP alpine image. My composer.json file for my application contains "ext-http": "*" , hence my goal. My Dockerfile (relevant portions) is as follows: # PHP-FPM Base Image FROM php:7.2.26-fpm-alpine # Install PHP extensions RUN apk add --update --virtual .build-deps autoconf g++ make zlib-dev curl-dev \ && pecl install raphf propro \ && docker-php-ext-enable raphf propro \ && pecl install pecl_http \ && echo -e "extension=raphf.so

starting container process caused “exec: \”/app\“: permission denied”: unknown

那年仲夏 提交于 2020-06-16 17:17:31
问题 When I was trying to build golang using docker The image build of docker was successful, but the following error occurred when running with docker run docker: Error response from daemon: OCI runtime create failed: container_linux.go:345: starting container process caused "exec: \"/app\": permission denied": unknown. I think this error cause no user add, so I added group and user as below RUN groupadd -g 10001 myapp \ && useradd -u 10001 -g myapp myapp but didn't fix. Here is my source docker

starting container process caused “exec: \”/app\“: permission denied”: unknown

删除回忆录丶 提交于 2020-06-16 17:16:31
问题 When I was trying to build golang using docker The image build of docker was successful, but the following error occurred when running with docker run docker: Error response from daemon: OCI runtime create failed: container_linux.go:345: starting container process caused "exec: \"/app\": permission denied": unknown. I think this error cause no user add, so I added group and user as below RUN groupadd -g 10001 myapp \ && useradd -u 10001 -g myapp myapp but didn't fix. Here is my source docker

starting container process caused “exec: \”/app\“: permission denied”: unknown

梦想的初衷 提交于 2020-06-16 17:16:17
问题 When I was trying to build golang using docker The image build of docker was successful, but the following error occurred when running with docker run docker: Error response from daemon: OCI runtime create failed: container_linux.go:345: starting container process caused "exec: \"/app\": permission denied": unknown. I think this error cause no user add, so I added group and user as below RUN groupadd -g 10001 myapp \ && useradd -u 10001 -g myapp myapp but didn't fix. Here is my source docker

How to install pyzmq on a Alpine Linux container?

早过忘川 提交于 2020-06-09 18:30:32
问题 I have a container with python:3.6-alpine kernel, I have a problem to install the pyzmq with pip on this: Dockerfile: FROM python:3.6-alpine RUN mkdir /code RUN apk add vim WORKDIR / ADD . /code docker-compose.yml: version: '3' services: battery_monitoring: build: . image: bm:1.0.0 container_name: battery_monitoring restart: unless-stopped volumes: - .:/code tty: true When I install several Python libraries on this container I haven't any problem, but in pyzmq library, there is an error:

Edit / hide Nginx Server header under Alpine Linux

做~自己de王妃 提交于 2020-05-17 06:27:06
问题 When I use curl --head to test my website, it returns the server information. I followed this tutorial to hide the nginx server header. But when I run the command yum install nginx-module-security-headers , it returns yum: not found . I also tried apk add nginx-module-security-headers , and it shows that the package is missing. I have used nginx:1.17.6-alpine as my base docker image. Does anyone know how to hide the server from header under this Alpine? 回答1: I think I have an easier solution

Nodejs with jenkins plugin not executable in alpine image and displays “symbol not found”

核能气质少年 提交于 2020-05-13 19:25:12
问题 Background : We have node version 8 installed and is working fine in a Jenkins alpine based docker image (running in AWS ECS). The node 8 was installed in the jenkins-alpine docker image. Then, there came another requirement to install node js Jenkins plugin, so that custom version can be installed and applied as needed using global tools configuration, We installed nodejs 10 as shown in the image below: Nodejs Plugin failed to run in jenkins I then tried using the jenkins nodejs 10 plugin in