Hot answers tagged

3

Try this, to run an adhoc command with IP address ansible all -i 192.168.254.150, -m ping 192.168.254.150 | SUCCESS => { "changed": false, "ping": "pong" } From man: -i INVENTORY, --inventory=INVENTORY, --inventory-file=INVENTORY specify inventory host path or comma separated host


3

Yes, as long as you have the Docker daemon running on the CentOS. Docker heavily utilizes a set of kernel features - namespaces and cgroups. That set comes native for all Linux derivatives. In terms of 'porting' the image, you have 2 widely used options: docker save on your Ubuntu host. Get the saved archive to your CentOS and load the image with docker ...


3

Docker containers do not use hardware drivers. A containers network connection is abstracted by Docker bridge. I highly recommend you seek some free tutorial videos or check out Linux Academy to better understand Docker. I promise it will give you great insights.


2

At first, I misread your question, thinking you wanted to run more than one service together, so I had recommended Docker Compose which makes it easy to run multiple services together, with networking, and can even specify the start up order. But now I see you are just trying to run MySQL, and wondering do you need separate containers for the OS and MySQL: ...


2

So basically I've ended up turning these flags off (/app/management/kibana/settings) filterEditor:suggestValues discover:searchOnPageLoad doc_table:highlight visualize:enableLabs telemetry:enabled Other ideas I had in mind: adding nginx as a proxy caching all the static files (js for plugins / images) warmup script (periodically makes requests to ...


2

The answer is in the warning you get: [WARNING]: provided hosts list is empty, only localhost is available. Note that the implicit localhost does not match 'all' When you use hosts: all in your playbook, localhost is not matched. If you want to run the playbook on localhost, you can do one of the following: Change your playbook to hosts: localhost. ...


1

You can run your flask container using the host networking mode. This way docker won't isolate the container and will run it the same network namespace as the host, and you container will be able to discover your database using localhost as mongodb hostname docker run --network host <flask-image>


1

The use case you described is one that is covered by ingress-controller. Ingress controller will listen to an static IP which is mapped to kubernetes service of type LoadBalancer and will then forward the traffic to the pods as required. LoadBalancer Services are used to create services that listen to traffic from outside the cluster. One you assign a static ...


1

If I understand the question correctly, the problem isn't really related to ansible at all. What you need is a package repository on the local network that can cache or mirror public packages. There are a number of deb specific options like rsyncmirror or apt-mirror. There are also generic options that hold many different types of binaries and package feeds, ...


1

If you are using the docker-compose file from that github repo it's using traefik and should correctly expose port 8000, that should default to 0.0.0.0:8000. Maybe Ubuntu firewall is blocking incoming TCP port 8000. That could explain why it works on drupal.localhost:8000 which most likely resolves to 127.0.0.1 but not from 192.* LAN. Check Ubuntu firewall: $...


1

I think it should be: children: docker: hosts: 01-dev: 02-dev: (The colon)


1

The docker build command builds Docker images from a Dockerfile and a “context”. A build’s context is the set of files located in the specified PATH or URL. The build process can refer to any of the files in the context. For example, your build can use a COPY instruction to reference a file in the context. From docker build documentation. As you run the ...


1

Docker doesn't recommend running an apt-get upgrade and dist-upgrade on a docker image as many of the "essential" packages from the partent image cannot upgrade inside an unprevileged container. take a look at the Docker best practices


1

I dont see downsides of using your Windows laptop. Its a matter of preference. If you know how to deal with Windows Environment variables, paths, EOL characters, you should be good. Many developers use Mac or Linux because they deal better with *unix like systems or because similar to the server they will run their apps. At the end of the day after you build ...


1

This is not really possible with container orchestration. Containers are bound by host and cannot be larger than host machines. At the same time, depending on your specific tasks there may exist specialized distributed software that may be suitable for your needs - i.e. Apache Spark covers a lot of computational use cases.


1

The docker container will be abstracted from the way that your host accesses the internet/network, and it should work fine / not care about if it's wifi or not/etc. You can happily run ubuntu docker containers on docker on top of windows, other linux variants (e.g. centos), mac, or anything else without issues. So, this should pose no difficulty in ...


Only top voted, non community-wiki answers of a minimum length are eligible