Tag: dockerfile

can't run fig up it always gets killed

This is a painful error as it takes a long time to get to this point and there is no visibility into what went wrong. Does anybody have suggests on locating the cause of this crash? Logs? I assume downloading the parent container is the main bottleneck. Can I short circuit this so that subsequent […]

Install composer dependencies while deploying

I’m using Elastic Beanstalk to deploy my application as a Single Docker Application. My Dockerfile does composer install while deploying, but I get a Could not authenticate against github.com error. I use these lines in my Dockerfile to install my dependencies: WORKDIR /www RUN [“composer”, “install”, “-o”] How would I solve this issue?

openssh-server doesn't start in Docker container

I am having a weird problem. I am not able to ssh to docker container having ip address 172.17.0.61. I am getting following error: $ ssh 172.17.0.61 ssh: connect to host 172.17.0.61 port 22: Connection refused My Dockerfile does contain openssh-server installation step: RUN apt-get -y install curl runit openssh-server And also step to start […]

container exit with code 0 while using docker compose file

I have a dockerfile to install httpd. When i run this dockerfile using the command docker run -dit /bin/bash, the container is started and it is running in the background. when i perform docker ps i could see the container running. I have created a docker-compose.yml file as below, version: ‘2’ services: web: build: context: […]

Docker build MySQL dockerfile occur none:none

i just download the MySQL dockerfile. And run this command docker build -t helloworld:1.0.0 . and then run docker images REPOSITORY TAG IMAGE ID CREATED SIZE <none> <none> 491aa62016dd 21 hours ago 384.5 MB centos 7 970633036444 7 days ago 196.7 MB debian jessie 1b01529cc499 8 days ago 125.1 MB i found that a image […]

Is there a way to set the Docker container's mac address in docker-compose.yml file?

Currently I’m using the following command to start a container with a predefined mac address: docker run -d –lxc-conf=”lxc.network.hwaddr=00:50:56:8E:8B:77:00:00″ –name=my_container my_image I’d like to know if there was a way to define the mac address of a container declared in a docker-compose.yml file. Thanks

Cannot access tomcat8 server running in docker container from host machine

I am trying to connect to a web app running on tomcat8 in a docker container. I am able to access it from within the container doing lynx http://localhost:8080/myapp, but when I try to access it from the host I only get HTTP request sent; waiting for response. I am exposing port 8080 in the […]

can we create VG on a docker container?

i need to know how we can creat a VG(Volume group) on a docker container because when i try pvscan in a centos container i have this result: vagrant@ubuntu-14:~$ sudo docker run -t -i centos-6-5 /bin/bash bash-4.1# pvscan No matching physical volumes found any ideas?

Unable to install docker 1.5 on ubuntu 14.04 64bit

Currently I have docker 1.0 verion in my vm(Ubuntu 14.04 64bit) I want to upgrade it to latest version(1.5) but facing some issue. Kindly help. First I tried getting key with below command, it is successful. sudo apt-key adv –keyserver-options https-proxy=”http://p72293:peedeE(6)@172.18.1.38:8080/” –keyserver hkp://keyserver.ubuntu.com:80 –recv-keys 36A1D7869245C8950F966E92D8576A8BA88D21E9 Second, I do “sudo apt-get update” but I get below […]

I need to remove folder and any descendents

I install centos in container and I must delete a folder so I run: sudo docker run -it centos /bin/bash and in this particular folder there are two other folder nodebb and nodebb1. I want delete nodebb1 and all files and directorie so I do : rm -r nodebb1 and I obtain : rm: remove […]

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