Crackers91
Crackers91

Reputation: 147

Docker Installation not working on Ubuntu x86_64 VM

I'm trying to install lxc-docker on a Ubuntu 64 bit vdi. Steps

  1. I installed the VM using the pre-defined settings in virtualbox - and set up my VM to use the VDI I got. -> Ubuntu 17.10 10th-August build (64bit)
  2. I did a sudo apt-get update. It worked fine
  3. I did an sudo apt-get install lxc-docker - and it said unable to locate package lxc-docker.

I do a uname -i and I get back x86_64. I'm running my virtual box on windows 10, 64 bit. Am I missing something simple here?

Upvotes: 0

Views: 604

Answers (2)

Junius L
Junius L

Reputation: 16152

Set up the repository for Ubuntu 17.10 first then install.

$ sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu zesty stable"

Add Docker’s official GPG key:

$ curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -

Then install

$ sudo apt-get update && sudo apt-get -y install docker-ce

Upvotes: 0

ajay
ajay

Reputation: 79

Follow the guide as asked by @mkasberg, here's the summary from docker url

sudo apt-get install apt-transport-https ca-certificates curl software-properties-common
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
sudo apt-get update
sudo apt-get install docker-ce

Upvotes: 1

Related Questions