Ubuntu Docker Container update-ca-certificates: command not found
This is running a Docker Container using the official Ubuntu 14.04 The end result will be the same as this QA once I can get that command installed.
New to Ubuntu and such, trying to get a docker container to update certs that i am linking in using -v
.
Tried to use dpkg -S update-ca-certificates as described in the link and a few other answers that seemed to point in the same general direction. but i end up getting this in the container
root@24b087e56f8e:/# apt-get install -y ca-certificates
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package ca-certificates
2 Questions
How do you find out what package a command is installed with?
What package do I need to install with my container to get
update-ca-certificates
working?
Solution 1:
PEBKAC
turns out you need to run apt-get update
before you can install any other packages. After running the updates you can then apt-get install -y ca-certificates
and this is the package that contains the command update-ca-certificates
Solution 2:
In Ubuntu Docker Container
1- apt-get update
2- apt-get install ca-certificates -y
3- update-ca-certificates
good luck.