What is the best way to pass AWS credentials to a Docker container?
I am running docker-container on Amazon EC2. Currently I have added AWS Credentials to Dockerfile. Could you please let me know the best way to do this? 9 Answers 9
I am running docker-container on Amazon EC2. Currently I have added AWS Credentials to Dockerfile. Could you please let me know the best way to do this? 9 Answers 9
Supposed I have a Docker container that I want to run, then I can call $ docker run … and everything is fine. Is there a built-in way to run a container in a way that it will be restarted automatically, if the system crashes and reboots? If so, is this also available in Docker … Read more
I want to build image via docker-compose and set specific tag to it. Documentation says: Compose will build and tag it with a generated name, and use that image thereafter. But I can’t find a way to specify tag and for built images I always see ‘latest’ tag. 6 Answers 6
I have installed docker on windows 10 pro. I am facing an issue while running the following command in git-bash. docker-compose up -d –build and got following error. E: gnupg, gnupg2 and gnupg1 do not seem to be installed, but one of them is required for this operation (23) Failed writing body Error executing command, … Read more
I have installed docker-compose using the command sudo apt install docker-compose It installed docker-compose version 1.8.0 and build unknown I need the latest version of docker-compose or at least a version of 1.9.0 Can anyone please let me know what approach I should take to upgrade it or uninstall and re-install the latest version. I … Read more
I am unable to specify CPU and memory limitation for services specified in version 3. With version 2 it works fine with mem_limit & cpu_shares parameters under the services. But it fails while using version 3, putting them under deploy section doesn’t seem worthy unless I am using swarm mode. Can somebody help? version: “3” … Read more
I have installed docker on CentOS 7 by running following commands, curl -sSL https://get.docker.com/ | sh systemctl enable docker && systemctl start docker docker run hello-world NOTE: helloworld runs correctly and no issues. however when I try to run docker-compose (docker-compose.yml exists and valid) it gives me the error on CentOS only (Windows version works … Read more
I am getting an error message saying I can’t connect to the docker daemon. I have looked into other people’s answers who have had similar issues but it hasn’t helped. I am running the version of Ubuntu 15.10. I will try to provide all the info I have. root@# docker-compose -f docker-compose-deps.yml up -d ERROR: … Read more
When I run docker-compose up in my Docker project it failes with the following message: Error starting userland proxy: listen tcp 0.0.0.0:3000: bind: address already in use netstat -pna | grep 3000 shows this: tcp 0 0 0.0.0.0:3000 0.0.0.0:* LISTEN – I’ve already tried docker-compose down, but it doesn’t help. 31 Answers 31 In your … Read more
To let the containers autostart at startup point, I tried to add the command: cd directory_has_docker-compose.yml && docker-compose up -d in /etc/rc.local. but then after I reboot the machine, the containers not work. How run docker-compose up -d at system start up? 7 Answers 7