Skip to content

Instantly share code, notes, and snippets.

@edw
Last active September 10, 2016 15:41
Show Gist options
  • Select an option

  • Save edw/6308497 to your computer and use it in GitHub Desktop.

Select an option

Save edw/6308497 to your computer and use it in GitHub Desktop.
docker: apt-get unable to locate redis-server
core@ip-10-99-66-79 ~ $ sudo docker pull ubuntu
Pulling repository ubuntu
Pulling image 8dbd9e392a964056420e5d58ca5cc376ef18e2de93b5cc90e868a1bbc8318c1c (precise) from ubuntu
Pulling 8dbd9e392a964056420e5d58ca5cc376ef18e2de93b5cc90e868a1bbc8318c1c metadata
Pulling 8dbd9e392a964056420e5d58ca5cc376ef18e2de93b5cc90e868a1bbc8318c1c fs layer
Downloading 58.34 MB/58.34 MB (100%)
Pulling image b750fe79269d2ec9a3c593ef05b4332b1d1a02a62b4accb2c21d589ff2f5f2dc (quantal) from ubuntu
Pulling b750fe79269d2ec9a3c593ef05b4332b1d1a02a62b4accb2c21d589ff2f5f2dc metadata
Pulling b750fe79269d2ec9a3c593ef05b4332b1d1a02a62b4accb2c21d589ff2f5f2dc fs layer
Downloading 10.24 kB/10.24 kB (100%)
Pulling 27cf784147099545 metadata
Pulling 27cf784147099545 fs layer
Downloading 94.86 MB/94.86 MB (100%)
core@ip-10-99-66-79 ~ $ sudo docker run -i -t ubuntu /bin/bash
2013/08/22 15:11:58 Error: Error starting container 645c7411729d: fork/exec /usr/sbin/lxc-start: operation not permitted
core@ip-10-99-66-79 ~ $ sudo docker run -i -t ubuntu /bin/bash
root@e7678c2c3602:/# apt-get update
Ign http://archive.ubuntu.com precise InRelease
Hit http://archive.ubuntu.com precise Release.gpg
Hit http://archive.ubuntu.com precise Release
Hit http://archive.ubuntu.com precise/main amd64 Packages
Get:1 http://archive.ubuntu.com precise/main i386 Packages [1641 kB]
Get:2 http://archive.ubuntu.com precise/main TranslationIndex [3706 B]
Get:3 http://archive.ubuntu.com precise/main Translation-en [893 kB]
Fetched 2537 kB in 1s (2136 kB/s)
Reading package lists... Done
root@e7678c2c3602:/# apt-get install redis-server
Reading package lists... Done
Building dependency tree... Done
E: Unable to locate package redis-server
root@e7678c2c3602:/#
apt-get install python-software-properties
add-apt-repository ppa:rwky/redis
apt-get update
apt-get install redis-server
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment