小编Akk*_*kki的帖子

Jenkins管道中的环境变量

是否有任何环境变量可用于获取Jenkins管道标题?

我知道我们可以$JOB_NAME用来获得自由式作业的标题,但是有什么东西可以用来获取管道名称吗?

jenkins jenkins-pipeline

34
推荐指数
2
解决办法
9万
查看次数

如何获取docker服务的容器ID

我想获得docker服务的容器ID.有没有可用的命令?

我试过了

docker service ps MyService
Run Code Online (Sandbox Code Playgroud)

但是这个只提供服务ID,我对运行服务的容器ID感兴趣

docker

9
推荐指数
3
解决办法
4313
查看次数

docker.service的作业失败,因为控制进程退出并显示错误代码

所以我在RHEL 7上安装了docker引擎

现在,当我做一个

service docker start
Run Code Online (Sandbox Code Playgroud)

我收到以下错误:

Job for docker.service failed because the control process exited with error code. See "systemctl status docker.service" and "journalctl -xe" for details.
Run Code Online (Sandbox Code Playgroud)

当我去"systemctl status docker.service"和"journalctl -xe"时,我得到:

docker.service - Docker Application Container Engine
   Loaded: loaded (/usr/lib/systemd/system/docker.service; disabled; vendor preset: disabled)
  Drop-In: /etc/systemd/system/docker.service.d
           ??docker.conf
   Active: failed (Result: exit-code) since Thu 2016-09-08 22:15:53 EDT; 10s ago
     Docs: https://docs.docker.com
  Process: 13504 ExecStart=/usr/bin/docker daemon -H fd:// --mtu 1400 --exec-opt native.cgroupdriver=systemd (code=exited, status=1/FAILURE)
 Main PID: 13504 (code=exited, status=1/FAILURE)

Sep 08 …
Run Code Online (Sandbox Code Playgroud)

docker

8
推荐指数
1
解决办法
1万
查看次数

命令'/ bin/sh返回非零代码:1

当我尝试在ubuntu Docker容器中手动安装bin文件时,它工作得很好,

./MyBinfile.bin
Run Code Online (Sandbox Code Playgroud)

但是当我从Dockerfile中尝试它时,我总是得到错误:命令'/ bin/sh -c chmod + x /tmp/snapcenter_linux_host_plugin.bin&& ./tmp/MyBinFile.bin'返回非零代码:1

我的Dockerfile看起来像:

    FROM debian:jessie

    RUN apt-get update && apt-get install -y openjdk-7-jdk
    ENV JAVA_HOME /usr/lib/jvm/java-7-openjdk-amd64
    RUN echo $JAVA_HOME

    COPY MyBinFile.bin /tmp/MyBinFile.bin
    RUN chmod +x /tmp/MyBinFile.bin && ./tmp/MyBinFile.bin
Run Code Online (Sandbox Code Playgroud)

在这种情况下,有人可以帮助我吗?

docker

8
推荐指数
1
解决办法
3万
查看次数

将curl转换为python请求

我想将我的下面的CURL请求转换为python POST请求,以便我可以将它与请求库一起使用

curl -uadmin:AP31vzchw5mYTkB1u3DhjLT9Txj -T <PATH_TO_FILE> "http://MyArtifactory-Server/artifactory/OurRepo/<TARGET_FILE_PATH>"
Run Code Online (Sandbox Code Playgroud)

在这种情况下,任何人都可以提

curl artifactory python-requests

7
推荐指数
2
解决办法
1万
查看次数

C*Cassandra Cluster和普通Cassandra Cluster有什么区别?

我已经阅读了有关C*复制的信息,将Cassandra设置中的分区器设置为Murmur Partitioner会使集群C*集群?

cassandra

6
推荐指数
1
解决办法
2230
查看次数

mount.nfs:不支持请求的NFS版本或传输协议

NFS挂载在我的RHEL 7 AWS实例中不起作用。

当我做一个

mount -o nfsvers=3 10.10.11.10:/ndvp2 /root/mountme2/
Run Code Online (Sandbox Code Playgroud)

我得到错误:

mount.nfs: requested NFS version or transport protocol is not supported
Run Code Online (Sandbox Code Playgroud)

谁能指出我做错了什么?谢谢。

mount nfs rhel

5
推荐指数
2
解决办法
2万
查看次数

java.lang.NoSuchMethodError:在步骤中找不到这样的DSL方法'echo'

我已经安装了所有管道插件,

但我还是得到了

java.lang.NoSuchMethodError: No such DSL method 'echo' found among steps [ArtifactoryGradleBuild, ArtifactoryMavenBuild, MavenDescriptorStep, artifactoryDownload, artifactoryPromoteBuild, artifactoryUpload, build, checkout, collectEnv, copyRemoteArtifacts, dockerPullStep, dockerPushStep, emailext, emailextrecipients, getArtifactoryServer, git, input, libraryResource, load, milestone, newArtifactoryServer, newBuildInfo, newGradleBuild, newMavenBuild, parallel, properties, publishBuildInfo, readTrusted, stage, triggerRemoteJob, withCredentials, xrayScanBuild] or symbols [all, always, ant, antFromApache, antOutcome, antTarget, apiToken, architecture, archiveArtifacts, artifactManager, batchFile, booleanParam, buildButton, buildDiscarder, caseInsensitive, caseSensitive, choice, choiceParam, clock, cloud, command, configFile, configFileProvider, cron, crumb, defaultView, demand, disableConcurrentBuilds, downloadSettings, downstream, dumb, envVars, file, fileParam, filePath, …
Run Code Online (Sandbox Code Playgroud)

jenkins jenkins-pipeline

3
推荐指数
1
解决办法
6982
查看次数

在启动时启动Docker-Engine

重新启动主机时,我希望我的Docker引擎在启动时启动。

这可能吗?谁能指出我正确的方向?

我的操作系统是RHEL 7.3,/ usr / lib / systemd / system / docker.service文件如下所示:

[Unit]
Description=Docker Application Container Engine
Documentation=https://docs.docker.com
After=network.target firewalld.service

[Service]
Type=notify
# the default is not to use systemd for cgroups because the delegate issues still
# exists and systemd currently does not support the cgroup feature set required
# for containers run by docker
ExecStart=/usr/bin/dockerd
ExecReload=/bin/kill -s HUP $MAINPID
# Having non-zero Limit*s causes performance problems due to accounting overhead
# in the kernel. We recommend using …
Run Code Online (Sandbox Code Playgroud)

boot systemd docker

3
推荐指数
1
解决办法
2599
查看次数