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’, […]

mounting a pseudo-tty in a docker container

My docker container has a script that opens a serial connection to a real TTY device in the production environment, something like an Arduino. For local testing without real connected devices, I would like to create an emulated TTY and then run the same docker container pointed at this pseudo-tty. When I create the pseudo-tty […]

How to add 3rd party jar to maven container docker

Hi i have developed a Java application which will take data from MsSql DB and push this data to Salesforce account. I have created this project as Maven project. The Jars used for Sql and salesforce are local one. I have installed locally using mvn install:install-file -Dfile=<path-to-file> -DgroupId=<group-id> \ -DartifactId=<artifact-id> -Dversion=<version> -Dpackaging=<packaging> And able to […]

How to open a project in Docker in PhpStorm?

I have a PHP project in a Docker container. I ran it and it works. Question: How do I open this project in PhpStorm so that I can edit the files? I read that I can connect to container via SSH. So where can I get login, password and an IP address to Docker container?

How to add docker label after image is made

I know that there is a LABEL available in Dockerfile. But I was wondering how to add additional labels to the image after it is built? Is this possible?

Load TensorFlow weights on docker container

I have a python script which runs a TensorFlow Graph and I want to run this script in a Docker container. I load the weights from files using the “load” function (in TensorFlow). Basically I have these files: InceptionCnnModel_Intent350.data-00000-of-00001 InceptionCnnModel_Intent350.index InceptionCnnModel_Intent350.meta I run the following command: model.load(‘lib/InceptionCnnModel_Intent350’) If I run the script in my local […]

building jenkins docker image from official Dockerfile

I am trying to build a jenkins docker image from official jenkins git repo: https://github.com/jenkinsci/docker. But when I try to run the container of the image using docker run -it -dP jenkins, it exits immediately and when i check the docker logs, I get the following error: : invalid option I read that the error […]

How to deploy an IPv6 container with Docker Swarm Mode or Docker Compose

In the end I’d like to have a pure IPv6 network deployed via compose or swarm mode. For now, I’d just like to have a single container deployed with IPv6 (only). I am not currently interested in routing (just container to container connectivity). My setup: OS: Centos 7 dockerd —ipv6 –fixed-cidr-v6=2001:db8:1::/64 –iptables=true –ip-masq=true –mtu=1600 –experimental=true […]

Share SSH Key to Docker Machine

I have an exisiting VM with docker installed (CoreOS) and I can connect to docker with the following powershell command. docker-machine create –driver generic –generic-ip-address=$IP –generic-ssh-key=$keyPath –generic-ssh-user=user vm docker-machine env vm | Invoke-Expression # Set Environment Variables Everything worked fine. I was able to build and run containers. Then I told my build server to […]

Two Users in Docker

I am trying to use two users with Docker for my Spring Boot application running in an OpenJDK/Alpine base image. Here is my scenario that I am trying to support. Maybe there is a better way. I need to provide production support so I want to attach with EXEC as devuser:appgroup but I am not […]

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