Tag: ubuntu

getting error /bin/sh: 1: source: not found

I am trying to build docker and installing nvm some code line RUN curl https://raw.githubusercontent.com/creationix/nvm/v0.25.0/install.sh | bash RUN source ~/.profile curl run successfully but when running source, getting below error /bin/sh: 1: source: not found The command ‘/bin/sh -c source ~/.profile’ returned a non-zero code: 127

How to mount a directory inside a docker container on linux host

I would like to mount a directory from a docker container to the local filesystem. the directory is a website root and I need to be able to edit it my local machine using any editor. I know I can run docker run -v local_path:container_path but doing that it is only creating an empty directory […]

When Docker image push on my linux machine unauthorized: authentication required error display

unauthorized: authentication required error display. When Docker image push on my linux machine to dockerHUB. Please help me to solve this problem. reffer following image.

Docker-proxy not passing connections to ports other than 80 from outside localhost (other machines)

Since few days my nginx, docker-compose, ubuntu server stopped serving api calls (port 8080), static files are still being served (port 80). iptables -L output: Chain INPUT (policy ACCEPT) target prot opt source destination Chain FORWARD (policy ACCEPT) target prot opt source destination DOCKER-ISOLATION all — anywhere anywhere DOCKER all — anywhere anywhere ACCEPT all […]

during startup program exited normally. segmentation fault

I am able to run my C++ program on my local ubuntu vm. But when I try to compile it and run in a docker ubuntu:12.04/14.04/16.04/16.10 container or AWS EC2 ubuntu 16.04 vm, it gives Segmentation fault as soon as I run the program. When I try to debug using gdb : break main; run […]

How make docker apear to new computer on network

I have installed Docker on my Ubuntu computer with an Debian image and I want to connect to a network using WiFi interface of my computer but I want to appear as new computer with new IP. When I type ifconfig on the docker VM I get the same local ip than my computer, so […]

Force npm compiling packages using docker image

I’m trying to start a Docker with an Ubuntu image and the installing zmq from npm. It seems that when it executes the npm install it uses the kernel from my computer (Arch Linux 4.8.13) to compile the packages. How could I force to use the image Ubuntu in the docker to compile the packages […]

How to access War File Build deployed in Tomcat Docker Container after deleting root

my docker file: FROM tomcat MAINTAINER “Shan Khan <xxx@gmail.com”> RUN [“rm”, “-rf”, “/usr/local/tomcat/webapps/ROOT”] COPY ROOT.war /usr/local/tomcat/webapps/ CMD [“/usr/local/tomcat/bin/catalina.sh”, “run”] running as: sudo docker build -t webserver sudo docker run -it –rm -p 8080:8080 webserver tomcat is running but im unable to access in the localhost:8080 or localhost:8080/ROOT

Docker DNS on Enterprise Networked Ubuntu

I want to setup some docker containers on an Ubuntu 16.04 Xenial Xerus desktop on the network of my campus. Unfortunately, it seems like the DNS in the docker containers doesn’t work, aka that docker run mhart/alpine-node:latest ping works but docker run mhart/alpine-node:latest ping google.com doesn’t. Running the docker with the –net=host option works, […]

Docker cannot log into existing container on amazon EC2, takes forever to respond

I have set up a docker on an Amazon EC2 server (linux ubuntu) and it works well for a while. Recently, the service dies and I tried to log into the container to see what happens, or at least to restart it. I first run sudo docker ps for the container id, then I need […]

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