Tag: Ubuntu

密码:chsh:PAM:authentication失败

试图运行 RUN chsh -s /bin/bash www-data (dockerfile)我试图将其更改为/ bin / zsh,但仍然无法正常工作。 Docker文件太长,有文件https://hub.docker.com/r/alexcheng/magento2/~/dockerfile/ 结果: Password: chsh: PAM: Authentication failure The command '/bin/sh -c chsh -s /bin/bash www-data' returned a non-zero code: 1 / etc / passwd文件 / etc / passwd文件 root:x:0:0:root:/root:/bin/zsh daemon:x:1:1:daemon:/usr/sbin:/usr/sbin/nologin bin:x:2:2:bin:/bin:/usr/sbin/nologin sys:x:3:3:sys:/dev:/usr/sbin/nologin sync:x:4:65534:sync:/bin:/bin/sync games:x:5:60:games:/usr/games:/usr/sbin/nologin man:x:6:12:man:/var/cache/man:/usr/sbin/nologin lp:x:7:7:lp:/var/spool/lpd:/usr/sbin/nologin mail:x:8:8:mail:/var/mail:/usr/sbin/nologin news:x:9:9:news:/var/spool/news:/usr/sbin/nologin uucp:x:10:10:uucp:/var/spool/uucp:/usr/sbin/nologin proxy:x:13:13:proxy:/bin:/usr/sbin/nologin www-data:x:33:33:www-data:/var/www:/bin/zsh backup:x:34:34:backup:/var/backups:/usr/sbin/nologin list:x:38:38:Mailing List Manager:/var/list:/usr/sbin/nologin […]

使用不支持的软件包 – 在Docker中使用php5和ubuntu 15.04非LTS

我们的应用程序运行在PHP 5.6上,需要运行OCI8。 我们find了工作OCI和PHP版本的特定组合,但是在这个不支持的Ubuntu上。 现在我们的Dockerfiles停止工作了 – 当: FROM ubuntu:15.04 RUN apt-get update 有错误: W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/vivid/main/source/Sources 404 Not Found [IP: 91.189.88.152 80] 有没有解决scheme,例如一些旧版本的存档,如phpBrew等?

Bitbucket容器失败

我试图设置一个容器,使用Docker和Bitbucket服务器版本4.2 。 我使用以下命令来启动容器并设置一个卷(这是由Bitbucket网站推荐的): https : //bitbucket.org/atlassian/docker-atlassian-bitbucket-server (我将sudo添加到每个命令) For Bitbucket 4.12+ In Bitbucket 4.12 and later versions, volume permission is managed by entry scripts. To get started you can use a data volume, or named volumes. In this example we'll use named volumes. $> docker volume create –name bitbucketVolume $> docker run -v bitbucketVolume:/var/atlassian/application-data/bitbucket –name="bitbucket" -d […]

Mysqli错误2002年:没有这样的文件或目录

我正在尝试运行nginx,php,mysql和docker。 当我运行docker-compose时,一切都看起来不错,但是当我尝试通过在我的索引页中的php代码连接到mysql我得到这个错误。 Warning: mysqli::__construct(): (HY000/2002): No such file or directory in /code/index.php on line 8 Connection failed: No such file or directory 我已经尝试改变本地主机到127.0.0.1和两个:3306之后。 当更改本地主机 – > 127.0.0.1,我得到另一个连接失败的声明: Warning: mysqli::__construct(): (HY000/2002): Connection refused in /code/index.php on line 8 Connection failed: Connection refused php代码: <?php $servername = "localhost"; $username = "root"; $password = "toor"; // Create connection […]

将AWS EC2实例的端口展示给整个networking

我有一个通过Docker部署在我们的旧服务器上的应用程序,并希望在AWS上进行部署。 所有实例都驻留在公司的专用networking上。 私有IP地址: My local machine: 10.0.2.15 EC2 instance: 10.110.208.142 如果我从Docker容器中运行nmap 10.110.208.142 ,则看到端口443按预期打开。 但是,如果从networking上的另一台计算机(例如从本地计算机)运行该命令,则会看到该端口已closures。 如何将该端口打开到networking的其余部分? 在EC2实例中,我试过了: sudo iptables -I INPUT -p tcp -m tcp –dport 443 -j ACCEPT 并没有解决问题。 我还允许在我的AWS安全组中使用端口443上的适当入站连接(以下屏幕截图): 谢谢,

构buildDocker安装nodejs v4.2.6

我有一个Docker文件,下面的代码: FROM ubuntu:16.04 MAINTAINER Drika RUN apt-get update && \ apt-get install -y –no-install-recommends curl && \ curl -sL https://deb.nodesource.com/setup_8.x | bash – && \ apt-get install -y nodejs 这是安装nodejs v4.2.6,而不是v8的最后一个版本。 我可能做错了什么?

PostgreSQL docker:“无法绑定IPv6套接字:无法分配请求的地址”

编辑:我很遗憾地说,这些问题在昨天和今天之间“独立”消失,没有我做任何事情。 在这里学习的伟大的非确定性的教训…奖金乐趣:“无法绑定IPv6套接字”的错误仍然出现在错误日志中,所以这可能甚至不是问题摆在首位。 我以前运行的docker PGSQL映像有问题。 直到昨天没有灵感的重build(:-D),我已经成功地使用了这个构build过去5个月以上。 我的系统: Ubuntu 17.04 64b PGSQL 9.6.4 Docker版本17.11.0-ce,构build1caf76c 我将主机端口5433映射到容器端口5432 问题 (从PGSQL日志片段): … 日志:无法绑定IPv6套接字:无法分配请求的地址 提示:另一位邮差pipe理员已经在端口5432上运行了吗? 如果没有,等待几秒钟,然后重试。 … 这是ss告诉我的(当容器运行时,显然): $ docker exec -it db ss -atune Netid State Recv-Q Send-Q Local Address:Port Peer Address:Port udp ESTAB 0 0 127.0.0.1:45876 127.0.0.1:45876 uid:999 ino:147509 sk:00000001 <-> tcp LISTEN 0 128 127.0.0.1:5432 *:* uid:999 ino:147500 sk:00000002 […]

如何修复_wapi_connect错误查找在Win10作为主机的Ubuntu 16.04 Hyper-V VM上运行的CentOS 5 docker脚本的套接字句柄?

我在Windows 10桌面上运行Ubuntu 16.04作为Hyper-V虚拟机(VM)。 在Ubuntu VM上,我正在运行一个docker脚本。 docker图片是一个CentOS 5。 docker脚本更新NuGet.exe,并在构build我们的源代码之前安装一堆包。 该脚本成功恢复并安装了一些软件包,但在尝试安装一个软件包时特别失败。 命令: mono nuget.exe install packages.config -ExcludeVersion -OutputDirectory /tools 从命令输出片段: Feeds used: https://api.nuget.org/v3/index.json …. Restoring Nuget package xUnit.Runner.Console.2.2.0 GET …nupkg OK …nupkg 236ms Installing xUnit.Runner.Console.2.2.0. Adding package 'xUnit.Runner.Console.2.2.0' Added package 'xunit.Runner.Console.2.2.0' Restoring Nuget package XXXX GET …nupkg OK …nupkg Installing XXXX **_wapi_connect: error looking up socket handle […]

将vimconfiguration为nvidia-docker容器

我正在使用nvidia-docker来训练很less的深度学习模型。 每当我把我的运行容器附加到我意识到的时候,vim设置都不适应容器的vim。 所以我安装了vundle,并将主机的.vimrc选项复制到容器root/.vimrc 。 我没有具体的错误。 但是:NERDTree或其他命令不运行请帮助。 这是我的.vimrc设置 set shell=/bin/bash set nocompatible " be iMproved, required filetype off " required " set the runtime path to include Vundle and initialize set rtp+=~/.vim/bundle/Vundle.vim call vundle#begin() " alternatively, pass a path where Vundle should install plugins "call vundle#begin('~/some/path/here') " let Vundle manage Vundle, required Plugin 'VundleVim/Vundle.vim' " The […]

从运行virtualbox的外部主机连接docker

我的主机(主)是Windows 10 安装运行Ubuntu的虚拟框 启动虚拟机之后,我安装了docker for ubuntu 拉图像(odoo和postgres),并通过localhost:8069成功启动Odoo应用程序 我切换回我的主机是Windows 10。 我怎样才能连接我的Windows 10的我的odoo应用程序? 另外,我的同事如何在同一个networking上访问我的odoo应用程序? 希望你能帮助我,谢谢:)