Add PPA to Docker Container

I ran add-apt-repository ppa: ubuntu-wine / ppa in the docker container, but couldn't notice:

Cannot add PPA: 'ppa:ppaname/ppa'.
Please check that the PPA name or format is crrect.

At the same time, he worked on the host.

After a lot of searching, I tried the following:

apt-get install python-software-properties
apt-get install software-properties-common
apt-get install --reinstall ca-certificates

and does not work.

The host system is ubuntu 04/14/64 bit.

The container image is based on ubuntu 14.04 from the DOCKER HUB.

Can someone help me?

+4
source share
2 answers

I'm not sure what went wrong with you.

This is how I got the job:

$ docker run -t -i --rm ubuntu:14.04 /bin/bash

And inside the container
# apt-get update && apt-get install -y software-properties-common
# add-apt-repository ppa:ubuntu-wine/ppa
# apt-get update
+11
source

Try defining this var before

LC_ALL=C.UTF-8 add-apt-repository ppa:ppaname/ppa
0
source

All Articles