containers

Why is my containerized Selenium application failing only in AWS Lambda?

懵懂的女人 提交于 2021-02-19 05:53:47
问题 I'm trying to get a function to run in AWS Lambda that uses Selenium and Firefox/ geckodriver in order to run. I've decided to go the route of creating a container image, and then uploading and running that instead of using a pre-configured runtime. I was able to create a Dockerfile that correctly installs Firefox and Python, downloads geckodriver , and installs my test code: FROM alpine:latest RUN apk add firefox python3 py3-pip RUN pip install requests selenium RUN mkdir /app WORKDIR /app

Cleanup disk space occupied by Docker images

為{幸葍}努か 提交于 2021-02-17 21:17:08
问题 I am running docker on windows 10. I had a couple of images stored in my machine. The total size of these images accumulated to around ~10GB. I have deleted these images via ' docker rmi -f ' command. But the space occupied by these images has not been released. If I run 'docker images' command, the deleted images are not listed in the output of 'docker images' command(but the disk space is not cleaned up). How can I improve (ie. reduce) the disk space used by docker? 回答1: First try to run:

Cleanup disk space occupied by Docker images

拥有回忆 提交于 2021-02-17 21:17:06
问题 I am running docker on windows 10. I had a couple of images stored in my machine. The total size of these images accumulated to around ~10GB. I have deleted these images via ' docker rmi -f ' command. But the space occupied by these images has not been released. If I run 'docker images' command, the deleted images are not listed in the output of 'docker images' command(but the disk space is not cleaned up). How can I improve (ie. reduce) the disk space used by docker? 回答1: First try to run:

MySQL container crash after /etc/mysql/my.cnf change, how to edit back?

旧城冷巷雨未停 提交于 2021-02-17 05:27:29
问题 I changed some mysql config settings and set something wrong, now Docker container keeps restarting and I cannot find the my.cnf file to edit in host filesystem. I have tried aufs/diff folders but so far unable to find it. Also tried: find / -name my.cnf -exec nano {} \; But it does not bring up the file I changed. And I tried to change config.v2.json to start /bin/bash instead of mysqld and restarted docker, but yet it started mysqld (due supervisor or something?) using official mysql

Running application with only some parts in a container [closed]

北城余情 提交于 2021-02-17 05:25:51
问题 Closed . This question is opinion-based. It is not currently accepting answers. Want to improve this question? Update the question so it can be answered with facts and citations by editing this post. Closed last year . Improve this question I wanted to know if an application which is being managed by Kubernetes, like Jupiter would work if some elements of it like the CIRCE dispatcher are used without a container. If yes, then broadly what kind of changes are required to be made? Also, are

What's the best way to store a config file for a Docker container on AWS?

寵の児 提交于 2021-02-16 20:35:54
问题 I have a node.js app which has a config file with sensitive data. I want to launch it through AWS ECS (cluster) as a docker container. What would be the best way to store the sensitive config data? I am currently sending them through the environmental variables in the Task Definition of the Docker container, but there has to be a better way to do that. What is the best practice for something like this? Shall I use Docker secrets or Amazon secrets manager? I know it's a pretty general question

What's the best way to store a config file for a Docker container on AWS?

馋奶兔 提交于 2021-02-16 20:35:09
问题 I have a node.js app which has a config file with sensitive data. I want to launch it through AWS ECS (cluster) as a docker container. What would be the best way to store the sensitive config data? I am currently sending them through the environmental variables in the Task Definition of the Docker container, but there has to be a better way to do that. What is the best practice for something like this? Shall I use Docker secrets or Amazon secrets manager? I know it's a pretty general question

Kubernetes Pod's containers not running when using sh commands

回眸只為那壹抹淺笑 提交于 2021-02-11 18:21:18
问题 Pod containers are not ready and stuck under Waiting state over and over every single time after they run sh commands (/bin/sh as well). As example all pod's containers seen at https://v1-17.docs.kubernetes.io/docs/tasks/configure-pod-container/configure-pod-configmap/#define-container-environment-variables-with-data-from-multiple-configmaps they just go on "Complete" status after executing the sh command, or if I set "restartPolicy: Always" they have the "Waiting" state for the reason

Kubernetes Pod's containers not running when using sh commands

天大地大妈咪最大 提交于 2021-02-11 18:20:07
问题 Pod containers are not ready and stuck under Waiting state over and over every single time after they run sh commands (/bin/sh as well). As example all pod's containers seen at https://v1-17.docs.kubernetes.io/docs/tasks/configure-pod-container/configure-pod-configmap/#define-container-environment-variables-with-data-from-multiple-configmaps they just go on "Complete" status after executing the sh command, or if I set "restartPolicy: Always" they have the "Waiting" state for the reason

How to implement erase on vector in c++

大憨熊 提交于 2021-02-11 18:15:59
问题 Learning from Accelerated C++: Practical Programming by Example , in chapter 11, there was an implementation (only with basic features) of vector container from STL. After that was an exercise for implementing erase function just as std::vector does. What I have tried: #include <memory> template<class T> class Vec{ private: T *data; T *avail; T *limit; std::allocator<T> alloc; ... public: explicit Vec(size_t n, const T &val = T()) { create(n, val); } T *const begin() { return data; } T *const