Open yafesdev opened 4 years ago
A container is just a process running on a host, so it can use all the available CPU resources unless specifically restricted. That context is for the host that the Docker Engine is running on. If you're running on a Linux host, then the container can use all the CPU resources since it's running natively. If you're running on a macOS or Windows host then Docker is actually running within a VM that Docker Desktop sets up. That VM can be assigned some number of CPUs up to the total number on the host. If, in that case, the Docker Desktop VM is assigned 2 CPUs, then that is the total amount of CPU resource that will be usable by any containers since it is within that VM that the containers are actually running.
The following snippet takes around
10 minutes
with the docker image, but only2 mins
with my local ffmpeg. I was wondering if docker isn't able to multi thread?I tried as well passing
--cpu=8
to docker's run command.