Skip to content
This repository was archived by the owner on Apr 27, 2026. It is now read-only.
This repository was archived by the owner on Apr 27, 2026. It is now read-only.

Installation cannot recognize the shell in the common containers #1095

@skyred

Description

@skyred

When run curl -fsS https://platform.sh/cli/installer | php in containers like the official docker images Drupal or PHP, below error is shown:

curl -fsS https://platform.sh/cli/installer | php
Platform.sh CLI installer

Environment check
 [*] The "json" PHP extension is installed.
 [*] The "phar" PHP extension is installed.
 [*] Git is installed.
 [*] The "openssl" PHP extension is installed.
 [*] The "pcre" PHP extension is installed.
 [*] One or both of the "mbstring" or "iconv" PHP extensions is installed.
 [*] The "curl" PHP extension is installed.
 [!] The "pcntl" and "posix" extensions are needed for some commands.
 [*] The "allow_url_fopen" setting is on.
 [*] The "apc.enable_cli" setting is off.

Download
 Finding the latest version... done
 Downloading version 3.72.1... done
 Checking file integrity... done
 Checking that the file is a valid Phar... done

Install
 Making the Phar executable... done
 Moving the Phar to your home directory... done
 Executable location: /var/www/.platformsh/bin/platform

Running self:install command...

Copying resource files... done

Setting up autocompletion... failed
   Cannot generate hook for unknown shell type 'nologin'. Available hooks
   are: bash, zsh

To set up the CLI, add the following lines to your shell configuration file:
# BEGIN SNIPPET: Platform.sh CLI configuration
HOME=${HOME:-'/var/www'}
export PATH="$HOME/"'.platformsh/bin':"$PATH"
if [ -f "$HOME/"'.platformsh/shell-config.rc' ]; then . "$HOME/"'.platformsh/shell-config.rc'; fi # END SNIPPET

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions