{"action":"opened","issue":{"url":"https://api.github.com/repos/containers/build/issues/322","repository_url":"https://api.github.com/repos/containers/build","labels_url":"https://api.github.com/repos/containers/build/issues/322/labels{/name}","comments_url":"https://api.github.com/repos/containers/build/issues/322/comments","events_url":"https://api.github.com/repos/containers/build/issues/322/events","html_url":"https://github.com/containers/build/issues/322","id":243485395,"number":322,"title":"/dev, /proc and /sys are not mounted in my running rkt container","user":{"login":"kfirufk","id":3110843,"avatar_url":"https://avatars2.githubusercontent.com/u/3110843?v=4","gravatar_id":"","url":"https://api.github.com/users/kfirufk","html_url":"https://github.com/kfirufk","followers_url":"https://api.github.com/users/kfirufk/followers","following_url":"https://api.github.com/users/kfirufk/following{/other_user}","gists_url":"https://api.github.com/users/kfirufk/gists{/gist_id}","starred_url":"https://api.github.com/users/kfirufk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kfirufk/subscriptions","organizations_url":"https://api.github.com/users/kfirufk/orgs","repos_url":"https://api.github.com/users/kfirufk/repos","events_url":"https://api.github.com/users/kfirufk/events{/privacy}","received_events_url":"https://api.github.com/users/kfirufk/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-07-17T18:30:59Z","updated_at":"2017-07-17T18:30:59Z","closed_at":null,"body":"Helllo...\r\n\r\nI'm using php docker image as the base image for my container, it's in order to add additional extensions to php.\r\n\r\neverything works fine.. the image is created.. but when I'm running it and I execute 'rkt enter ID', I notice that /sys, /proc and /sys are not mounted. any ideas why?\r\n\r\n\r\nthis is my build script:\r\n```\r\n\r\n#!/usr/bin/env bash\r\nset -e\r\nif [ \"$EUID\" -ne 0 ]; then\r\n    echo \"This script uses functionality which requires root privileges\"\r\n    exit 1\r\nfi\r\n\r\nPHP_VERSION=7.1.7\r\n# Start the build with an empty ACI\r\nacbuild --debug begin docker://php:${PHP_VERSION}-fpm-alpine\r\n\r\n# In the event of the script exiting, end the build\r\nacbuildEnd() {\r\n    export EXIT=$?\r\n    acbuild --debug end && exit $EXIT\r\n}\r\ntrap acbuildEnd EXIT\r\n\r\nACBUILD_FLAGS=\"--debug\"\r\n# Name the ACI\r\nacbuild --debug set-name tux-in.com/php-fpm\r\nacbuild --debug label add version 0.1\r\nacbuild --debug label add arch amd64\r\nacbuild --debug label add os linux\r\n\r\n\r\nacbuild ${ACBUILD_FLAGS} run -- apk upgrade -U\r\n\r\nuntil acbuild ${ACBUILD_FLAGS} run -- apk add freetype alpine-sdk sed libtool zlib-dev openssl-dev bzip2-dev curl-dev jpeg-dev freetype-dev gettext-dev libmcrypt-dev libpq postgresql-dev sqlite-dev libedit-dev dpkg dpkg-dev; do\r\n echo \"failed downloaded packages.. retrying..\"\r\n sleep 2\r\ndone\r\n\r\nuntil acbuild ${ACBUILD_FLAGS} run -- docker-php-ext-configure zip; do\r\n echo \"failed downloaded packages.. retrying..\"\r\n sleep 2\r\ndone\r\n\r\nacbuild ${ACBUILD_FLAGS} run -- docker-php-ext-install -j5 zip bz2 curl exif fileinfo gd gettext iconv mcrypt  pdo_mysql pdo_pgsql pdo_sqlite readline reflection session || true\r\nacbuild ${ACBUILD_FLAGS} port add php-fpm tcp 9000\r\n\r\nacbuild ${ACBUILD_FLAGS} set-exec -- /usr/local/sbin/php-fpm -D\r\nacbuild ${ACBUILD_FLAGS} write --overwrite tuxin-php-fpm-1.0-linux-amd64.aci\r\n```\r\n\r\nand the systemd file that starts rkt-php-fpm at the following:\r\n\r\n[Unit]\r\nDescription=PHP-FPM\r\nRequires=network-online.target local-fs.target\r\nAfter=network-online.target local-fs.target\r\n\r\n[Install]\r\nWantedBy=multi-user.target\r\n```\r\n\r\n[Service]\r\nSlice=machine.slice\r\nExecStart=/usr/bin/rkt run --net=host --insecure-options=image --volume php-etc,kind=host,source=/mnt/storage/php/etc,readOnly=true --volume nginx-vhosts,kind=host,source=/mnt/storage/nginx/vhosts,readOnly=false --volume logs,kind=host,source=/mnt/storage/php/log,readOnly=false --volume html,kind=host,source=/mnt/storage/nginx/html,readOnly=false --mount volume=php-etc,target=/usr/local/etc --mount volume=nginx-vhosts,target=/var/www/html-vhosts --mount volume=logs,target=/usr/local/var/log --mount volume=html,target=/var/www/html /home/ufk/dev/acbuild-builds/tuxin-php-fpm-1.0-linux-amd64.aci\r\nKillMode=mixed\r\nRestart=always\r\nRestartSec=0\r\nExecStopPost=/usr/bin/rkt gc --mark-only\r\n```\r\n\r\nI'm on Container Linux by CoreOS 1465.0.0 (Ladybug) with rkt version 1.27.0 and latest acbuild from git.\r\n\r\nthank you! :)"}}
{"actor":{"display_login":"kfirufk"}}