OpenEVSE / openevse_wifi_server

15 stars 12 forks source link

Docker install error: no subsystem for mount #3

Closed glynhudson closed 5 years ago

glynhudson commented 5 years ago

Testing on docker V1.12.0 on Ubuntu

~/Documents/openevse_wifi_server$ docker build .
Sending build context to Docker daemon 292.4 kB
Step 1 : FROM node:10-jessie
10-jessie: Pulling from library/node
8ac9f5ca4429: Pull complete 
a4aea35522d8: Pull complete 
6f400822c615: Pull complete 
d371a72c723e: Pull complete 
fe2d6b774cc4: Pull complete 
555a00e3ae84: Pull complete 
1e9841c89a03: Pull complete 
Digest: sha256:f38583a3da89577d56962b1a607d7c46e7cdac890c2abe89e7c4bfbe3fe0eba1
Status: Downloaded newer image for node:10-jessie
 ---> 2f88282a1e34
Step 2 : ARG PORT=3000
 ---> Running in 53941451d22f
 ---> 24e51f76067b
Removing intermediate container 53941451d22f
Step 3 : ENV PORT $PORT
 ---> Running in 073c836a3d31
 ---> 317ba53c42e5
Removing intermediate container 073c836a3d31
Step 4 : EXPOSE $PORT
 ---> Running in f20393714418
 ---> 539f62262f66
Removing intermediate container f20393714418
Step 5 : ARG NODE_ENV=production
 ---> Running in ce99ba9290f5
 ---> 8d1d06e407d7
Removing intermediate container ce99ba9290f5
Step 6 : ENV NODE_ENV $NODE_ENV
 ---> Running in 20c52268a668
 ---> c092c055fa2d
Removing intermediate container 20c52268a668
Step 7 : WORKDIR /app
 ---> Running in 9c6f9d2543de
 ---> 62f7df95046e
Removing intermediate container 9c6f9d2543de
Step 8 : COPY . /app
 ---> 1e569ca1b3d8
Removing intermediate container 7579f1bb4b18
Step 9 : RUN npm install
 ---> Running in 967a0943dbcc
oci runtime error: rootfs_linux.go:53: mounting "/sys/fs/cgroup" to rootfs "/var/lib/docker/aufs/mnt/d268a6803f63558aede679bc5603a7e77c5cc00495012103eb6a55679e2f58cb" caused "no subsystem for mount"
jeremypoulter commented 5 years ago

Hum works for me :(

$ docker build .
Sending build context to Docker daemon  292.4kB
Step 1/11 : FROM node:10-jessie
 ---> 2f88282a1e34
Step 2/11 : ARG PORT=3000
 ---> Running in 2de8535cd5e7
Removing intermediate container 2de8535cd5e7
 ---> e590125281c3
Step 3/11 : ENV PORT $PORT
 ---> Running in 9389eb5ec402
Removing intermediate container 9389eb5ec402
 ---> 8bf47e838402
Step 4/11 : EXPOSE $PORT
 ---> Running in bb46a9589fd3
Removing intermediate container bb46a9589fd3
 ---> 37bdeffb8d6e
Step 5/11 : ARG NODE_ENV=production
 ---> Running in de613b312827
Removing intermediate container de613b312827
 ---> 5ff14e4aa504
Step 6/11 : ENV NODE_ENV $NODE_ENV
 ---> Running in f2beb5df589d
Removing intermediate container f2beb5df589d
 ---> 9e6a25d3c058
Step 7/11 : WORKDIR /app
Removing intermediate container e49c9e099a8e
 ---> ed9343f38c02
Step 8/11 : COPY . /app
 ---> d0e28280c38a
Step 9/11 : RUN npm install
 ---> Running in 7f05fff8acd1

> serialport@6.2.2 install /app/node_modules/serialport
> prebuild-install || node-gyp rebuild

added 339 packages from 224 contributors and audited 4680 packages in 6.811s
found 0 vulnerabilities

Removing intermediate container 7f05fff8acd1
 ---> e8be434bd278
Step 10/11 : USER node
 ---> Running in 4ea2d149a04d
Removing intermediate container 4ea2d149a04d
 ---> 136bd4a885f2
Step 11/11 : CMD [ "npm", "start" ]
 ---> Running in da0af3257743
Removing intermediate container da0af3257743
 ---> 5a6302883063
Successfully built 5a6302883063

Update you version of Docker?

$ docker --version
Docker version 18.04.0-ce, build 3d479c0
$ uname -a
Linux moonshade 4.15.0-43-generic #46-Ubuntu SMP Thu Dec 6 14:45:28 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
glynhudson commented 5 years ago

Awesome! Yup, that was it.

I was running Docker version 1.12.0, build 8eab29e

Upgrading to docker Docker version 18.09.3, build 774a1f4 fixed the issue. The container now builds :+1:

I followed this guide to remove old version then install docker CE on Ubuntu from dockers repository: https://docs.docker.com/install/linux/docker-ce/ubuntu/

uname -a
Linux xxxx 4.15.0-46-generic #49-Ubuntu SMP Wed Feb 6 09:33:07 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux