Getting a docker error while following supported install


(Cee Kay) #1
WARNING: We are about to start downloading the Discourse base image
This process may take anywhere between a few minutes to an hour, depending on your network speed

Please be patient

Unable to find image 'discourse/discourse:1.3.10' locally
1.3.10: Pulling from discourse/discourse
dcae0346555e: Pulling fs layer
e5c7be3cd856: Pulling fs layer
e5c7be3cd856: Verifying Checksum
e5c7be3cd856: Download complete
dcae0346555e: Verifying Checksum
dcae0346555e: Download complete
dcae0346555e: Pull complete
e5c7be3cd856: Pull complete
Digest: sha256:7f52137e368fb17f92744814eefdee9a22ba3f75f2e37a0fc73197d0d0772f65
Status: Downloaded newer image for discourse/discourse:1.3.10
/usr/bin/docker: Error response from daemon: Could not check if docker-default AppArmor profile was loaded: open /sys/kernel/security/apparmor/profiles: permission denied.
ERRO[0125] error getting events from daemon: context canceled
Your Docker installation is not working correctly

See: https://meta.discourse.org/t/docker-error-on-bootstrap/13657/18?u=sam
root@engineersity:/var/discourse#

The above error is what I get while installing docker discourse.

Is there any work around?

VPS.ag : LXC VPS
Ubuntu 16.04 LTS


(Jeff Atwood) #2

Your system is unable to work with Docker.


(Cee Kay) #3

Are you sure? So changing to another VPS is the only option?


(Cee Kay) #4

Is it because it is LXC container or is it because ubuntu is not supported?


(Rafael dos Santos Silva) #5

Ubuntu is the recommended distro, but running a container inside a container isn’t the most common setup.

Usually we see people using KVM VPSs.


(Cee Kay) #6

Thank you Falco.

So, I can run it error free inside a KVM(Full virtualization) right?


(Rafael dos Santos Silva) #7

Yes, we usually recommend Digital Ocean because it runs out of the box there.

If you browse our #hosting category you will see some recommendations of upcloud, hetzner, vultr. Google cloud and AWS works too.


#8

Most likely the LXC container. It’s possible to run Docker inside LXC/LXD, but it depends on the configuration of the container. You should get a KVM VPS*. I’m using OVH, other mentioned Scaleway and the specs for the 7€ KVM VPS from VPS.ag sound good, too.

*I even run SmartOS (not Linux, but open sourced Solaris kernel) on the cheapest KVM VPS from OVH.


(Cee Kay) #9

Thanks brother. By the way I am considering to jump to Linode?

Does linode works well with our discourse?, does it support docker install?

I may go to VirMach.com VPS. I found a good offer from them


(Matt Palmer) #10

Yes, Linode will work fine.


#11

Since full virtualisation (i.e. kvm) is quite cheap nowadays, I would stay away from OpenVZ, especially if you want to use Docker.


(Cee Kay) #12

VirMach has KVM. An offer through lowendbox