Tag: linux

Jenkins Pipeline: Postman Test script fails with “connect ECONNREFUSED ip:port”

I am trying to setup CI/CD pipleline for my java REST service using Jenkins in linux. Pipline is setup in Jenkins which builds the jar(if any commit) and create Docker image and runs the container in linux box and In Test stage, I have written postman collection to test the webservice running in Docker container. […]

When I start my app with PM2 + Docker, just run and exit

I try to follow this tutorial, but when I execute my app nothing happens My Dockerfile (CHANGED) FROM keymetrics/pm2-docker-alpine:7 WORKDIR /api RUN npm install pm2 -g ADD . . CMD [“pm2-docker”, “ecosystem.config.js”] And my ecosystem.config.js.. const maxMemory = process.env.WEB_MEMORY || 80; const nodeEnv = process.env.NODE_ENV || ‘development’; module.exports = { apps: [ { name: ‘api’, […]

mounted directory on host does not work or access docker container

my docker version $ docker -v Docker version 1.7.1, build 786b29d host mounted some directory on boot. $ cat /etc/rc.d/rc.local mount -t nfs -o nolock db:/A /usr/local/B/C [root@web8 ~]# df -h Filesystem Size Used Avail Use% Mounted on /dev/sda2 24G 1.1G 22G 5% / tmpfs 3.9G 148K 3.9G 1% /dev/shm /dev/sda1 190M 71M 109M 40% […]

error installing Tensorflow via docker

I have tried to run this docker run -it tensorflow/tensorflow:1.1.0 bash but I got this error. Why I get this error(it says: Unable to find image ‘tensorflow/tensorflow:1.1.0’ locally) and starts downloading and then it stops dowloading and says timeout? could you pls help me? Unable to find image ‘tensorflow/tensorflow:1.1.0’ locally 1.1.0: Pulling from tensorflow/tensorflow c62795f78da9: […]

Dropping priviliges inside of the container

One of my images requires mounting of devices. Thus, it needs cap_sys_admin when starting. However, I’d like to drop this capability once it is no longer needed. Is there some way of dropping the capability at a later stage?

Connect to Docker API from Windows to external server

I am working on Windows and on a virtual machine (VirtualBox) I installed Ubuntu server with a Docker. Now I am struggling to define Docker on PhpStorm. It requires connecting to Docker socket which is not working for me. From Windows, I can ping Ubuntu server with Could you give me some advice how […]

Utilizing the –user param to create a user with a Dockerfile container

I have a docker container getting passed randomly generated –user id. What I’m trying to do is create a user with that id in the docker file. Like so RUN adduser –disabled-password –uid ${IDHERE} –gid 0 –gecos container container Is this possible in docker? I just need to get the id that is passed to […]

How to change owner of Docker for Windows

Environment Windows 10 [10.0.15063] Docker for Windows Community Edition 17.03.1-ce-win12(12058) stable The host is mounted and partitioned into NTFS format Command host docker run -d –volume E:/tmp:/tmp/test –name debian debian:8 docker exec -it debian /bin/bash container cd /tmp/test mkdir abc ls -l # This line will be shown that root is the owner of abc […]

Docker run – User group not working as expected?

I have a script that communicates over serial port (/dev/ttyUSB0). I want to run it from within a Docker image. However I don’t seem to have permissions to do it from within the image. I follow these steps: On my host, if I run ln -l /dev/ttyUSB0 I get: crw-rw—- 1 root dialout 188, 0 […]

Extra package installation in boot2docker

I am running a virtual machine using boot2docker. I have to install extra packages (e.g Python library). I read I should use the command tce-load command for the installation, but when I enter this command I get already the error: tce-load: command not found. Any idea about how this can be fixed? Thank you very […]

Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.