Hot answers tagged

4 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 ...
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, --...
user avatar
  • 203
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 ...
user avatar
  • 604
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 ...
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,...
user avatar
2 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 ...
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 ...
user avatar
  • 1,346
1 vote
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 ...
user avatar
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 ...
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 ...
user avatar
  • 1,346
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/...
user avatar
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:...
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 ...
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 ...
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 ...
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 ...
user avatar
  • 141
1 vote
Accepted

Ansible hosts group reference does not work

I think it should be: children: docker: hosts: 01-dev: 02-dev: (The colon)
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 ...
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 ...
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 ...
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 ...
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 ...
user avatar
  • 747
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 ...
user avatar

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