gabrielmoreira / craftman

Craft CMS Manager
MIT License
124 stars 11 forks source link

oci runtime error: rootfs_linux.go:53: mounting "/proc" to rootfs #11

Open 19wolf opened 7 years ago

19wolf commented 7 years ago
root@Arachne:~# craftman install
===> Installing Craft...
===> Preparing to download Craft CMS
===> +  Using Craft CMS from local cache
===> Extracting Craft CMS tar.gz
===> +  Extracting craft.tar.gz to /root/site
===> Generating Craft CMS configurations
===> +  Generating 'scripts/install/010_dependencies.sh'
===> +  Generating 'site/craft/config/db.php'
===> +  Generating 'site/craft/config/general.php'
===> +  Generating 'docker-compose.yml'
===> +  Generating 'scripts/override/usr/local/etc/php/php.ini'
===> +  Generating 'scripts/install/100_composer.sh'
===> Starting Craft CMS containers
Pulling mysql_data (debian:jessie)...
jessie: Pulling from library/debian
5040bd298390: Pull complete
Digest: sha256:abbe80c8c87b7e1f652fe5e99ff1799cdf9e0878c7009035afe1bccac129cad8
Status: Downloaded newer image for debian:jessie
Creating root_mysql_data_1
ERROR: oci runtime error: rootfs_linux.go:53: mounting "/proc" to rootfs "/var/lib/docker/vfs/dir/d841f24cbf26270ad2af9185fee84085f81e24682c62f0695aa82398b4194f61" caused "permission denied"

I'm running in an Ubuntu 16.04 LXD container on an Ubuntu 16.04 host

gabrielmoreira commented 6 years ago

Craftman does not work in the root ~ directory. Try to create a folder like cd ~/mysite.

My suggestion is:

  1. Delete ~/.craftman, ~/scripts , ~/.docker-compose.yml and ~/site.
  2. Install craftman again curl -o- https://raw.githubusercontent.com/gabrielmoreira/craftman/master/craftman_install | sh
  3. Create a new directory for your site, such as ~/mysite.
  4. cd ~/mysite and install the craftman install --port 8080 (use a fixed local port to avoid problems when docker container changes ip )