草庐IT

alpine-package-keeper

全部标签

sbt - sbt-native-packager 的 docker :publishLocal do? 是什么意思

Thedocs说:TobuildanimageandstoreitinthelocalDockerserver,usedocker:publishLocal我刚刚开始使用Docker,对“本地Docker服务器”的概念并不熟悉。那是什么,我应该在哪里寻找docker:publishLocal的输出? 最佳答案 Docker服务器这里描述了Docker的主要组件:https://docs.docker.com/introduction/understanding-docker/#what-are-the-major-docker-co

docker - alpine 软件包 py-pip 丢失

我尝试使用Dockercompose文件在我的alpine中安装pythonpip,但出现以下错误。ERROR:unsatisfiableconstraints:py-pip(missing):requiredby:world[py-pip]ERROR:Service'web'failedtobuild:Thecommand'/bin/sh-capkaddpy-pip'returnedanon-zerocode:1 最佳答案 先更新:apkadd--updatepy-pip或者:apkupdateapkaddpy-pip

docker - 如何让/etc/profile 在 Alpine/Docker 中自动运行

如何让/etc/profile在交互式启动AlpineDocker容器时自动运行?我在aliases.sh文件中添加了一些别名并将其放在/etc/profile.d中,但是当我使用dockerrun-it启动容器时[my_container]sh,我的别名没有激活。我必须手动输入。/etc/profile从命令行每次。是否需要一些其他配置才能让/etc/profile在登录时运行?我在使用~/.profile文件时也遇到了问题。任何见解都值得赞赏!编辑:根据VonC的回答,我提取并运行了他的示例ruby容器。这是我得到的:$dockerrun--rm--nameruby-itcodec

python - 在 Docker Alpine 上安装 numpy

我正在尝试在基于Alpine3.1的docker容器中安装numpy。我正在使用以下Dockerfile:FROMalpine:3.1RUNapkadd--updatemakecmakegccg++gfortranRUNapkadd--updatepythonpy-pippython-devRUNpipinstallcythonRUNpipinstallnumpy这运行良好,直到pipinstallnumpy出现以下错误:error:Command"gcc-fno-strict-aliasing-Os-fomit-frame-pointer-DNDEBUG-Os-fomit-frame

docker - Alpine Dockerfile --no-cache Vs 的优势。 rm/var/cache/apk/*

在使用Alpine镜像创建Dockerfile时,我经常看到使用apk--no-cache和其他时候提交它,但我看到的是rm/var/cache/apk/*.我很想知道使用--no-cache消除了以后执行rm/var/cache/apk/*的需要。我还想知道一种风格是否比另一种更受欢迎。 最佳答案 --no-cache选项允许不在本地缓存索引,这对于保持容器较小很有用。从字面上看,它等于开头的apkupdate和结尾的rm-rf/var/cache/apk/*。我们使用--no-cache选项的一些示例:$dockerrun-ti

docker - 在 docker alpine linux 基础镜像上设置 glibc 是否有最佳实践?

是否有在dockeralpinelinux基础镜像上使用正确路径设置glibc的最佳实践,以便任何生成的进程都可以正确引用已安装libc库的位置? 最佳答案 是的,有,我使用自定义构建的glibc在其上安装JRE。你可以找到它here您可以使用wget或curl获取代码和apk来安装它们更新的命令见下方评论apk--no-cacheaddca-certificateswgetwget-q-O/etc/apk/keys/sgerrand.rsa.pubhttps://alpine-pkgs.sgerrand.com/sgerrand.

docker - 如何在 Alpine Docker 容器中运行 Bash 脚本?

我的目录只包含两个文件,Dockerfile和sayhello.sh:.├──Dockerfile└──sayhello.shDockerfile读取FROMalpineCOPYsayhello.shsayhello.shCMD["sayhello.sh"]而sayhello.sh只包含echohelloDockerfile构建成功:kurtpeek@Sophiemaries-MacBook-Pro~/d/s/trybash>dockerbuild--tagtrybash.SendingbuildcontexttoDockerdaemon3.072kBStep1/3:FROMalpin

python - pip 10 和 apt : how to avoid "Cannot uninstall X" errors for distutils packages

我正在处理一个遗留的Dockerfile。这是我正在处理的非常简化的版本:FROMubuntu:14.04RUNapt-get-yupdate&&apt-get-yinstall\python-pip\python-numpy#...andmanyotherpackagesRUNpipinstall-UpipRUNpipinstall-r/tmp/requirements1.txt#includese.g.,numpy==1.13.0RUNpipinstall-r/tmp/requirements2.txtRUNpipinstall-r/tmp/requirements3.txt首先使

bash - Docker:如何将 bash 与基于 Alpine 的 docker 镜像一起使用?

我从openjdk:8-jdk-alpine创建了一个docker镜像,但是当我尝试执行简单的命令时出现以下错误:RUNbash/bin/sh:bash:notfoundRUN./gradlewbuildenv:can'texecute'bash':Nosuchfileordirectory 最佳答案 Alpinedocker镜像默认没有安装bash。您需要添加以下命令来获取bash:RUNapkupdate&&apkaddbash如果你使用的是Alpine3.3+那么你可以这样做:RUNapkadd--no-cachebash保持

go - package code.google.com/p/go.example/hello : exec: "hg": executable file not found in %PATH%. 如何获取远程golang包?

我按照Golang教程http://golang.org/doc/code.html#remote所写的那样做我的环境设置:C:\sbox\go\example>setgoGOPATH=C:\sbox\go\exampleGOROOT=C:\Goexample/文件夹只有src/文件夹:C:\sbox\go\example\|--src\现在我按照描述调用goget并得到一个错误:C:\sbox\go\example>gogetcode.google.com/p/go.example/hello#cd.;hgclone-Uhttps://code.google.com/p/go.exa