Tag: 高山

高山linux 3.5和ruby 2.0的错误?

我正在尝试使用Alpine linux 3.5来Docker化一个旧的RoR4应用程序,以在rails 4 docker镜像上构build一个ruby,但是我得到了一些与ssl相关的错误。 我已经试过Rails 4.x的多重版本,但没有任何作品。

大规模应用程序的高山配送食品?

在学习和学习Docker的过程中 ,我读了很多关于Linux发行版的内容,我总是在Alpine上看到正面的评论,因为它是轻量级的,但是使用轻量级的缺点是什么? 我猜测,因为它是轻量级的,它也有一个缺点,当涉及到扩展..此外,什么可以是一个轻量级的分布相比,像Ubuntu的其他发行版的优势? 我如何testing和感受优势?

如何在Alpine上的OpenSSH中debugging无法使用的无密码RSA证书?

我计划使用真正的SSH客户端和SSH服务器编写和运行一些集成testing。 因为这需要服务器级的configuration,所以我在Docker中设置了testing,这样服务器就可以按照正确的规范构build,OpenSSH服务器启动,testing运行。 我的系统的一部分需要一个非root用户(称为nonpriv )能够ssh密码的基础上的服务器。 我已经生成了服务器证书和非root用户证书。 我已经build立了localhost作为一个已知的主机(所以服务器的真实性已经确认),但我很努力设置证书作为授权密钥。 我希望能够做ssh localhost作为nonpriv用户,并自动获得一个shell。 但是它跳过密钥,并进入密码authentication,这是不是我想要的。 Docker的ENTRYPOINT是这样的,所以每次运行的服务器密钥都是不同的: #!/bin/sh # # With thanks to https://github.com/danielguerra69/alpine-sshd if [ ! -f "/etc/ssh/ssh_host_rsa_key" ]; then # generate fresh rsa key ssh-keygen -f /etc/ssh/ssh_host_rsa_key -N '' -t rsa fi if [ ! -f "/etc/ssh/ssh_host_dsa_key" ]; then # generate fresh dsa key ssh-keygen -f /etc/ssh/ssh_host_dsa_key -N '' -t […]

什么是Ubuntu的libarmadillo-dev的高山Linux等价包?

我正在试图用高山linux作为基础镜像来构build一个docker镜像,因为它非常轻。 我在ubuntu中使用libarmadillo-dev软件包。 需要一个相当于高山。

Docker容器在启动后立即退出

我使用php:alpine为我的docker,并成功地build立它。 但是当我用docker run –name=IMAGE_NAME -p 9000:80 -d -it -v /etc/localtime:/etc/localtime:ro -v /home/logs/:/home/logs/ TAG 'while true; do sleep 1000; done'启动它时, docker run –name=IMAGE_NAME -p 9000:80 -d -it -v /etc/localtime:/etc/localtime:ro -v /home/logs/:/home/logs/ TAG 'while true; do sleep 1000; done' docker run –name=IMAGE_NAME -p 9000:80 -d -it -v /etc/localtime:/etc/localtime:ro -v /home/logs/:/home/logs/ TAG 'while true; do sleep 1000; done' […]

在Alpine(node:8-latest)Docker镜像上安装“locales”

我试图使用高山(nodeJS)泊坞窗图像,但我得到错误/bin/sh: apt-get: not found 。 那么在阿尔卑斯山做这个的同样命令呢? FROM node:8.6-alpine ARG APP_LOCALE=en_US ARG APP_CHARSET=UTF-8 RUN apt-get install locales RUN locale-gen ${APP_LOCALE} RUN localedef ${APP_LOCALE}.${APP_CHARSET} -i ${APP_LOCALE} -f ${APP_CHARSET}

GitLab CI – 无法从映像中连接到Docker守护进程

我有一个基于节点的项目,以下是作为构build的一部分需要执行的前几个步骤: npm install npm run build docker build -t client . 上面的最后一个命令构build了以下Dockerfile: FROM docker.artifactory.abc.net/nginx COPY build /usr/share/nginx/html COPY default.conf /etc/nginx/conf.d/default.conf .gitlab-ci.yml内容: image: docker.artifactory.abc.net/docker/node:1.0 stages: – build – deploy build: stage: build script: – npm install – npm run build – docker build -t client . 在上面的Dockerfile中,我使用了一个包含代理设置的自定义节点图像( node:1.0 ),以便工作和Artifactoryconfiguration,所有的依赖关系都是使用Artifactory来获取的。 现在当我运行这个版本时,我得到了docker: command not found执行最后一个命令( docker build -t […]

Dockerfile试图“apk添加composer php”失败?

我试图学习Docker,并遇到了一个障碍。 我的docker文件如下 # Base image of a nginx box FROM richarvey/nginx-php-fpm:latest ARG VERSION=0.0.0 ENV APP=jewel ENV WEBROOT=/var/www/html/JEWEL_WEB_ROOT/ WORKDIR /var/www/html COPY ./ ./ # Install composer libs RUN echo "ipv6" >> /etc/modules #RUN ["apk","update"] RUN ["apk","add","composer", "–no-cache"] RUN ["composer","install"] ENV PORT=80 EXPOSE 80 当构build过程到达apk添加时,我得到以下内容: Step 8/11 : RUN apk add composer –no-cache —> Running in ffa506b1a07f […]

docker容器与Apache服务器被杀死

我是Containers的新手,试图用这个教程把我的头包裹起来: http://containertutorials.com/alpine/alpine-apache-server-static-site.html 在这里我创builddockerfile并尝试运行容器,但每次都会失败。 任何指针? root@ubuntu:/home/skorada# docker run -it -p 4000:80 –name my-apache2- alpine-1 my-apache2-alpine [s6-init] making user provided files available at /var/run/s6/etc…exited 0. [s6-init] ensuring user provided files have correct perms…exited 0. [fix-attrs.d] applying ownership & permissions fixes… [fix-attrs.d] done. [cont-init.d] executing container initialization scripts… [cont-init.d] 30-resolver: executing… [cont-init.d] 30-resolver: exited 0. [cont-init.d] 40-resolver: executing… […]

高山linux – autossh(缺less)

我需要能够: – RUN apk add –no-cache autossh 把我的项目从ubuntu迁移到高山linux 我在构buildDockerfile时遇到错误。任何解决方法? 我无法摆脱autossh要求,因为我需要这个连接到我写作数据库。 ERROR: unsatisfiable constraints: autossh (missing): required by: world[autossh] The command '/bin/sh -c apk add –no-cache autossh' returned a non-zero code: 1