Hot answers tagged

6 votes
Accepted

ansible error: skipping: no hosts matched

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 ...
Ravi Mashru's user avatar
3 votes
Accepted

How come my hostname isn't set to the FQDN with cloud-init when using `prefer_fqdn_over_hostname`?

This is a bug in cloud-init, I've filed it upstream as Bug #1966533 I was getting silent failures because the hostname was host-10-2-65-89.openstack.build. Instead of host-10-2-65-89.openstack.build ...
Evan Carroll's user avatar
  • 1,524
3 votes
Accepted

Kibana slow performance optimization

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 ...
Most Wanted's user avatar
3 votes

Can't ping client on ansible ,

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, --...
Siva's user avatar
  • 223
3 votes

Porting a docker container to a different Linux host OS

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 ...
Recoba20's user avatar
  • 622
3 votes

Can I run a Ubuntu 16 Docker image on a Ubuntu 18 host? Will I need to install hardware drivers already available to the host?

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 ...
Steven K7FAQ's user avatar
2 votes

Combining Two Containers

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,...
mikequentel's user avatar
2 votes

How to create an Ubuntu image for 16.04

I wouldn't suggest making a 16.04 image since that was EOL as of April 2021. You can search the docker hub for "ubuntu 16.04" and find several instances of it $ docker pull ubuntu:16.04 ...
Peter Turner's user avatar
  • 1,446
1 vote

Why is Ansible task getting stuck for so long?

Answering those who could face the same problem. I solved the problem, it was due to putting the escalation method in the playbook. become_method: su Rather than it should be this become: true
Muhammed Adil's user avatar
1 vote

In Ubuntu, how do I change the home path of Jenkins using the CLI?

I was having the same problem on a Centos 7.9 system using Jenkins 2.346.2 Sometime around 2.332.1 Jenkins migrated from init.d to system.d, so the previous method of updating the /etc/sysconfig/...
Jim Abrille's user avatar
1 vote

In Ubuntu, how do I change the home path of Jenkins using the CLI?

This question was already asked and answered on Stack Overflow. I'll copy the top answer here, but there are several other answers over there that you may find useful: For me on Jenkins 2.7.2 on ...
jayhendren's user avatar
  • 2,912
1 vote

How to create a container from an image

This would be the multi-layer approach in docker containers... #Create the base OS image FROM python:3 AS base #Update the OS ubuntu image RUN apt-get -y update #Install packages RUN apt-get -y ...
xjohnyx's user avatar
  • 11
1 vote

How to create a container from an image

Depending on what you want to do, there are a lot of options you can pass in to docker, but if you just want to run the code in the container as written: docker run nvcr.io/nvidia/pytorch:18.04-py3 or ...
Peter Turner's user avatar
  • 1,446
1 vote

Can't run apt-get update in an Ubuntu 16.04 docker container

This is because ubuntu16 is no longer supported by Nvidia They have shut this repo down visiting the error page shows they have marked it as unsupported https://nvidia.github.io/libnvidia-container/...
Will's user avatar
  • 133
1 vote
Accepted

Docker refuses to execute commands or start containers with Ubuntu 20 image on Ubuntu 21 host, but works on Ubuntu 20 host

Asked on the Docker forums - apparently to correctly "import" the image, you don't user the import command but instead user image load command. INCORRECT: $ docker image save local/ubuntu:...
TheProtagonist's user avatar
1 vote

Azure Pipeline Ubuntu 20.04 agent not picking up jobs

I hit this question trying desperately to figure out why Visual Studio wasn't appearing as a capability. It turns out my installation of Visual Studio on the build machine required a restart. However ...
ste-fu's user avatar
  • 111
1 vote
Accepted

How to assign static IP to Kubernetes cluster?

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 ...
rohatgisanat's user avatar
1 vote
Accepted

Using ansible to update remote Ubuntu servers that have no external internet access

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 ...
Mike Frank's user avatar
1 vote

Reaching a Docker environment running in VMware from LAN

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 ...
wowbagger's user avatar
  • 201
1 vote
Accepted

Ansible hosts group reference does not work

I think it should be: children: docker: hosts: 01-dev: 02-dev: (The colon)
Soeren's user avatar
  • 26
1 vote
Accepted

How to copy HTML files to include into nginx?

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 ...
Benjamin Longearet's user avatar
1 vote

Can I upgrade a docker image/container from buntu 18.04 to ubuntu 20.04?

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 ...
sridhar pandurangiah's user avatar
1 vote

Docker container host machine communication

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 ...
Iduoad's user avatar
  • 146
1 vote
Accepted

WIndows or Ubuntu server when developing on windows?

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 ...
gabrielpe's user avatar
1 vote

Linking nodes in a cluster to run a single instance of a docker container

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 ...
taleodor's user avatar
  • 837
1 vote
Accepted

Can I run a Ubuntu 16 Docker image on a Ubuntu 18 host? Will I need to install hardware drivers already available to the host?

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 ...
John Humphreys's user avatar

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