containers

docker nginx ERR_NAME_NOT_RESOLVED

Deadly 提交于 2019-12-24 10:45:45
问题 Running 4 docker containers: server/client/nginx/mongo reverse-proxy The client seems to work on port 4200, I can see my app and routing works. When trying to register a user, I am requesting the below httpclient post to the Docker container called "myserver" which should call the api. I am getting this DNS error message. When looking at the NGINX container at the resolv.conf (it shows 127.0.0.11) which is the correct dns Docker resolves the dns-es with within the container. When I ping from

Docker in Windows Server 2016 is not working

£可爱£侵袭症+ 提交于 2019-12-24 08:32:06
问题 I have a new Windows Server 2016, with all updates applied. I followed the commands from the quick-start and all of them went fine. Now when I run the command to Pull the image and run I got this: PS C:\Windows\system32> docker run microsoft/dotnet-samples:dotnetapp-nanoserver Unable to find image 'microsoft/dotnet-samples:dotnetapp-nanoserver' locally dotnetapp-nanoserver: Pulling from microsoft/dotnet-samples bce2fbc256ea: Pull complete 6330793656b1: Pull complete 8f8cb03e6bbd: Pull

JADE action() not working

让人想犯罪 __ 提交于 2019-12-24 08:29:07
问题 I think I am missing something in my project. I need agents to perform specific task that I assign. I am using JADE. Inside the action() I wrote a for loop to display numbers 1 to 10. While running no error is showing and also the loop is not getting executed. When I run: java -cp jade.jar jade.Boot -gui agent:TestAgent I get a classNotFound Exception and also shows agent can't be created. When I run: java -cp jade.jar jade.Boot -gui -agent agent:TestAgent I get info as agent ready, but the

Inconsistent issue when using docker-compose in Bluemix

独自空忆成欢 提交于 2019-12-24 07:14:51
问题 I'm having an issue deploying and linking 3 containers using docker-compose in Bluemix / IBM Containers. The compose file I am using has worked and continues to work but it is very inconsistent. When it fails, I get the following response: Recreating xxxxx_1 Recreating yyyyy_1 Creating zzzzz_1 ERROR: for server 'message' Traceback (most recent call last): File "docker-compose", line 3, in <module> File "compose/cli/main.py", line 64, in main File "compose/cli/main.py", line 116, in perform

Swift 4 Decodable multiple containers

三世轮回 提交于 2019-12-24 07:07:35
问题 I'm trying to understand how could I parse this multiple container JSON to an object. I've tried this approach (Mark answer), but he explain how to solve it using one-level container. For some reason I can't mimic the behaviour for multiple containers. { "graphql": { "shortcode_media": { "id": "1657677004214306744", "shortcode": "BcBQHPchwe4" } } } class Post: Decodable { enum CodingKeys: String, CodingKey { case graphql // The top level "user" key case shortcode_media } enum PostKeys: String

Applescript to (if/then) determine file type and choose correct program to open and print file (within batch sequence)

岁酱吖の 提交于 2019-12-24 06:38:23
问题 I have culled together an applescript with great help from @chuck and other board posts to effectively batch print a list of files exported from filemaker containers to a folder called "print" on my desktop. The problem I'm running into now is some of those container exports are not PDF (its a mix of Jpg, PNG, Tif and PDF) and will not open using acrobat (using preview for the PDF or any other PDF viewer is out of the question for a myriad of reasons)... This problem is effectively shutting

get a python docker container to interact with a redis docker container

匆匆过客 提交于 2019-12-24 00:39:32
问题 I'm new to docker, redis and any kind of networking, (I know python at least!). Firstly I have figured out how to get a redis docker image and run it in a docker container: docker run --name some-redis -d redis As I understand this redis instance has port 6379 available to connect to other containers. docker network inspect bridge "Containers": { "2ecceba2756abf20d5396078fd9b2ecf0d60ab04ca6b8df5e1b631b6fb5e9a85": { "Name": "some-redis", "EndpointID":

Serializing std::vector of unique_ptr using boost::serialization fails on linux

≯℡__Kan透↙ 提交于 2019-12-23 20:16:35
问题 I am encountering an issue with using boost serialization of a std::vector of std::unique_ptr's. The type of the unique_ptr does not matter, and in the below example, integers are used: #include <boost/serialization/unique_ptr.hpp> #include <boost/serialization/vector.hpp> #include <boost/archive/xml_iarchive.hpp> #include <boost/archive/xml_oarchive.hpp> #include <fstream> namespace boost { namespace serialization { template <class Archive> void serialize(Archive& ar, std::vector<unique_ptr

c++ class with an iterator but no container

霸气de小男生 提交于 2019-12-23 19:00:26
问题 I'm trying to implement a class that would allow me to iterate over objects STL-style without explicitly storing them in a container. A simplified example of this would be, say, a <Paragraph>::iterator in a class that doesn't actually have a container of Paragraphs, but instead has a <string> text variable. It's easy to create a member function that actually goes through text line by line and assemble paragraphs but it seems silly to me to store all this text again in some container just so

automatic spot pricing for kops deployment

给你一囗甜甜゛ 提交于 2019-12-23 17:37:53
问题 I can already do spot deployments with kops but it requires manually editing a the instance groups (nodes) $ kops edit ig --name=test.dev.test.com nodes machineType: t2.medium maxSize: 2 minSize: 2 => machineType: t1.nano maxSize: 1 minSize: 1 Need to look into a way of doing this automatically with the average spot price + 10% I would also like to have at least 1 master and 1 node that are running on normal instances to survive a complete spot-overbid shutdown and the rest to spot price. Can