Sign inSign up

rhessing/php-sshd

By rhessing

•Updated about 3 years ago

A PHP CLI image that includes composer and a SSH server to connect to using Visual Studio Code

Image
0

1.6K

rhessing/php-sshd repository overview

⁠php-sshd

A PHP CLI image that includes composer, multiple tools and a SSH server to connect to using Visual Studio Code

⁠Optionally these options can be started:
  • Xdebug
  • SSH

⁠Default SSH user

The default user for SSH login is php. The user does not have a password set, a public key is required.

⁠Public key

The public key is configured using a bind mount. The location within the container is: /home/php/.ssh/authorized_keys

⁠PHP options

The following environment options may be set, if not set the default values are used.

VariablePHP settingDefault value
TIMEZONEdate.timezoneEtc/UTC
ERROR_REPORTINGerror_reportingE_ALL
DISPLAY_ERRORSdisplay_errorson
DISPLAY_STARTUP_ERRORSdisplay_startup_errorson
REMOTE_PORTxdebug.remote_port9000
REMOTE_ENABLExdebug.remote_enable1
REMOTE_AUTOSTARTxdebug.remote_autostart1
REMOTE_HOSTxdebug.remote_hosthost.docker.internal
IDEKEYxdebug.idekeyVSC
FILE_LINK_FORMATxdebug.file_link_formatvscode://file/%f:%l
⁠Image purpose

This docker image is meant to be used for development purposes it is not meant to be used in production. For production it is better to use other images which have a smaller footprint and do not include development options such as composer, xdebug and SSH.

Tag summary

Content type

Image

Digest

sha256:4a944240c…

Size

291.2 MB

Last updated

about 3 years ago

docker pull rhessing/php-sshd