Exception trying to run ASP.NET 5 Docker container

Trying to create my Docker container. Image builds without issue but then when I try and run: docker run -t -d –name website website I get the following exception: System.InvalidOperationException: Failed to resolve the following dependencies for target framework ‘Asp.Net,Version=v5.0’: app 1.0.0 Microsoft.Framework.Logging.Interfaces 1.0.0-beta2 Searched Locations: /{name}/project.json /root/.kpm/packages/{name}/{version}/{name}.nuspec /usr/lib/mono/4.5/{name}.dll /usr/lib/mono/4.5/Facades/{name}.dll Try running ‘kpm restore’. at […]

Docker build with -f option cannot find Dockerfile

I have tried a lot of combinations with the docker -f option but I have never got it to work I can do this: docker build -t foo/bar . But I cannot do this: docker build -t foo/bar -f Dockerfile . or this: docker build -t foo/bar -f ./Dockerfile . This gives me the following […]

Why NPM is not available in Docker Conainter

I am very new to docker and playing with it. I am trying to run nodejs app in docker container. I took ubuntu:14.04 as base image and build my own nodeJS baked image. My Dockerfile content looks like below FROM ubuntu:14.04 MAINTAINER nmrony #install packages, nodejs and npm RUN apt-get -y update && \ apt-get […]

How to allocate percentage of system resources to Docker?

I know you can do something like docker build -c 2 . to give the container 2 cores, but can you do something like give the container 50% of the memory and 50% of the CPU?

jenkins 'execute script' build step Error: /bin/docker: Permission denied

Im trying to build a simple pipeline on my personal pc. I have Jenkins ver. 2.32.2 installed and running. Below is the job dsl for my pipeline: node { stage(‘Github Checkout’) { checkout([$class: ‘GitSCM’, branches: [[name: ‘*/master’]], doGenerateSubmoduleConfigurations: false, extensions: [], submoduleCfg: [], userRemoteConfigs: [[credentialsId: ‘921fd840-1d71-4b06-bf5e-1c6f3141f669’, url: ‘git@github.com:justinsr20/tdd_django.git’]]]) } stage(‘Build containter image’) { sh ‘whoami’ […]

Run script from host machine on Docker container with exec [closed]

I do have docker container running and I do quite complex script to run inside container. The script is located on host machine. I can’t modify Dockerfile How can I place script file to docker vm to run it with docker exec?

Docker History Base Image Add:sha256hash

I’m trying to better understand the docker history output. When I run docker history nginx:latest I get output that nearly matches the Dockerfile: /bin/sh -c #(nop) CMD [“nginx” “-g” “daemon off;”] /bin/sh -c #(nop) EXPOSE 443/tcp 80/tcp/bin/sh -c ln -sf /dev/stdout /var/log/nginx/access.log && ln -sf /dev/stderr /var/log/nginx/error.log /bin/sh -c apt-key adv –keyserver hkp://pgp.mit.edu:80 –recv-keys 573BFD6B3D8FBC641079A6ABABF5BD827BD9BF62 […]

docker ubuntu cron -f is not working

Trying to run a cron job in a docker container. HAve a supervisord properly configured (I see cron -f in the ps -ef and if I kill it it respawns) crontab file (for testing): * * * * * echo hi >> /root/test I tried putting it in /etc/cron.d/crontab /etc/crontab and in /var/spool/cron/crontabs/crontab Nothing is […]

Docker networking: how to show connected containers names

I’m building a Docker (1.9.1) network and attaching a few containers to it. docker network inspect NETWORK lists the connected containers, but refers to them only with the containers IDs, while I’d like to see also their names. I haven’t found an option for the docker network inspect command to achieve this. Is parsing externally, […]

Can't connect to Docker container

I have a Node.js service built with Restify and I’m trying to use Docker to wrap it all up. My Dockerfile seems to work fine and my DB and Service boots and using docker exec I can curl REST endpoints just fine. However, the ports don’t seem to get exposed. I’m on a Mac if […]

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