containers

Why a angular container needs a exposed port to connect?

不问归期 提交于 2020-04-16 02:55:06
问题 this is just a question about theory, my app is running perfectly... So, I have 3 services runing with docker-compose: a postgres database , a backend springboot and a frontend angular . From what I know, docker containers can acess ports from other docker containers without the need to expose the port, so there is no need to expose nor bind the ports because they are all containers and can access each other with the default bridge network mode (that's what I learned, don't know if this is

How do you delete an AWS ECS Task Definition?

我的未来我决定 提交于 2020-04-12 07:43:10
问题 Once you've created a task definition in Amazon's EC2 Container Service, how do you delete or remove it? 回答1: It's a known issue. Once you de-register a Task Definition it goes into INACTIVE state and clutters up the ECS Console. 来源: https://stackoverflow.com/questions/35045264/how-do-you-delete-an-aws-ecs-task-definition

How to get a move-only type out of a STL container?

ぐ巨炮叔叔 提交于 2020-04-11 04:27:07
问题 Let's consider an std::unordered_set of std::unique_ptr<T> as an example. Can I move an element of the set elsewhere ? #include <unordered_set> #include <iostream> #include <memory> #include <vector> int main() { std::unordered_set<std::unique_ptr<int>> mySet; mySet.insert(std::make_unique<int>(1)); mySet.insert(std::make_unique<int>(2)); mySet.insert(std::make_unique<int>(3)); std::vector<std::unique_ptr<int>> myVector; for (auto&& element : mySet) { std::cout << *element << std::endl; /

Scaling with docker-composer and appending a number to the hostname?

≡放荡痞女 提交于 2020-03-26 06:40:48
问题 I've got a docker-compose.yml : master: build: . slave: image: master hostname: slave command: run_slave How can I make docker-compose scale slave=5 generate machines with unique hostnames? ...e.g. something like this: slave1 slave2 slave3 slave4 slave5 回答1: There is no way to set the hostname to that value. If you need a unique identifier, I would use the unique container id, which you can get by running $(hostname) . 回答2: The accepted answer is correct, there is no way to set this using one

“docker container run” requires at least 1 argument

邮差的信 提交于 2020-03-23 14:09:26
问题 I'm trying to create a container using a volume that I have already created, but my console shows the error docker container run" requires at least 1 argument This is the command I'm trying to run: docker container run --name db -v volume-dados-do-banco:/var/lib/mysql -e MYSQL_ROOT_PASSWORD=Mypass I have also tried this one, wih more arguments, but the same error persists: docker container run -d --name db -p 3306:3306 -e 'ACCEPT_EULA=Y' -e MYSQL_ROOT_PASSWORD=Mypass -v volume-dados-do-banco:

Run docker container on localhost via VM

*爱你&永不变心* 提交于 2020-03-06 05:14:43
问题 I'm new to Docker and Containers, and I'm trying to run a simple asp.net web app in a container but running into issues. My OS is Windows 10 Home, so I have to use the Docker Toolbox, which runs on a VM that only includes a basic Linux OS. When I spin up the container, it seems to start fine, but I can't view the app on the localhost. $ docker run -p 8342:5000 -it jwarren:project Hosting environment: Production Content root path: /app Now listening on: http://*:5000 Application started. Press

Run docker container on localhost via VM

我们两清 提交于 2020-03-06 05:14:06
问题 I'm new to Docker and Containers, and I'm trying to run a simple asp.net web app in a container but running into issues. My OS is Windows 10 Home, so I have to use the Docker Toolbox, which runs on a VM that only includes a basic Linux OS. When I spin up the container, it seems to start fine, but I can't view the app on the localhost. $ docker run -p 8342:5000 -it jwarren:project Hosting environment: Production Content root path: /app Now listening on: http://*:5000 Application started. Press

How to Pull all docker container images from docker repo at once?

会有一股神秘感。 提交于 2020-02-27 22:20:35
问题 I have a private docker repo in which i have 10 container images stored. I want to pull all images to a machine. is there a way i can pull all images from a repo with a single command? some command like docker pull xx.xx.com/reponame/* while researching I found ways to pull all tags of a single image; but no luck so far on all images 回答1: Try this (it will update images that does not have running containers directly attached to them) docker images | awk '(NR>1) && ($2!~/none/) {print $1":"$2}

How to Pull all docker container images from docker repo at once?

风格不统一 提交于 2020-02-27 22:16:58
问题 I have a private docker repo in which i have 10 container images stored. I want to pull all images to a machine. is there a way i can pull all images from a repo with a single command? some command like docker pull xx.xx.com/reponame/* while researching I found ways to pull all tags of a single image; but no luck so far on all images 回答1: Try this (it will update images that does not have running containers directly attached to them) docker images | awk '(NR>1) && ($2!~/none/) {print $1":"$2}

Run privileged podman without sudo (and without usernamespace)

让人想犯罪 __ 提交于 2020-02-27 12:00:27
问题 I installed podman on RHEL 7.6 and can run normal docker command with sudo sudo podman run hello-world Is there a way to run it without sudo, without using usernamespace (similar to adding your user to the docker group when using regular docker command)? I understand that when run as a non-root user, podman uses usernamespace. But I am not able to enable/ setup suid on the machine (LDAP etc.) Currently, when run as a non-root user, I get this user namespaces are not enabled in /proc/sys/user