Skip to main content
edited body
Source Link

The su-exec program in this script is actually the Alpine version created by Natanael Copa.

It is installed from the OP's Dockerfile on line 6.

The Alpine su-exec versionprogram is a substitute for gosu. Both programs are used to enable execution of a command as a specific user with the same environment variables and permissions as would normally be available to the user.

Thus you can effectively "step down" from root inside the container to run a specific command as a user and not as root.

So the alternative solution in Ubuntu would be to install gosu itself, which has no dependencies, and in the docker-entrypoint.sh script use:

gosu "$ZOO_USER" "$@"

(as per @alexey-shrub's comment below)

The su-exec program in this script is actually the Alpine version created by Natanael Copa.

It is installed from the OP's Dockerfile on line 6.

The Alpine su-exec version is a substitute for gosu. Both programs are used to enable execution of a command as a specific user with the same environment variables and permissions as would normally be available to the user.

Thus you can effectively "step down" from root inside the container to run a specific command as a user and not as root.

So the alternative solution in Ubuntu would be to install gosu itself, which has no dependencies, and in the docker-entrypoint.sh script use:

gosu "$ZOO_USER" "$@"

(as per @alexey-shrub's comment below)

The su-exec program in this script is actually the Alpine version created by Natanael Copa.

It is installed from the OP's Dockerfile on line 6.

The Alpine su-exec program is a substitute for gosu. Both programs are used to enable execution of a command as a specific user with the same environment variables and permissions as would normally be available to the user.

Thus you can effectively "step down" from root inside the container to run a specific command as a user and not as root.

So the alternative solution in Ubuntu would be to install gosu itself, which has no dependencies, and in the docker-entrypoint.sh script use:

gosu "$ZOO_USER" "$@"

(as per @alexey-shrub's comment below)

added 113 characters in body
Source Link

The su-exec program in this script is actually the Alpine version created by Natanael Copa.

It is installed from the OP's Dockerfile on line 6.

The Alpine su-exec version is a substitute for gosu. Both programs are used to enable execution of a command as a specific user with the same environment variables and permissions as would normally be available to the user.

Thus you can effectively "step down" from root inside the container to run a specific command as a user and not as root.

So, answering the question, the alternative solution in Ubuntu would be to install gosu itself, which has no dependencies., and in the docker-entrypoint.sh script use:

gosu "$ZOO_USER" "$@"

(as per @alexey-shrub's comment below)

The su-exec program in this script is actually the Alpine version created by Natanael Copa.

It is installed from the Dockerfile on line 6.

The Alpine su-exec version is a substitute for gosu. Both programs are used to enable execution of a command as a specific user with the same environment variables and permissions as would normally be available to the user.

Thus you can effectively "step down" from root inside the container to run a specific command as a user and not as root.

So, answering the question, the alternative solution in Ubuntu would be to install gosu itself, which has no dependencies.

The su-exec program in this script is actually the Alpine version created by Natanael Copa.

It is installed from the OP's Dockerfile on line 6.

The Alpine su-exec version is a substitute for gosu. Both programs are used to enable execution of a command as a specific user with the same environment variables and permissions as would normally be available to the user.

Thus you can effectively "step down" from root inside the container to run a specific command as a user and not as root.

So the alternative solution in Ubuntu would be to install gosu itself, which has no dependencies, and in the docker-entrypoint.sh script use:

gosu "$ZOO_USER" "$@"

(as per @alexey-shrub's comment below)

Add markdown formatting for links, add "and permissions ... normally"
Source Link

The su-execsu-exec program in this script is actually the Alpine version created by Natanael Copa: https://github.com/ncopa/su-exec.

It is installed from the Dockerfile (https://github.com/31z4/zookeeper-docker/blob/d5d320f94212691bd6e60326e45c152ac6784210/3.4.10/Dockerfile) on line 6.

The Alpine su-exec version is a substitute for gosu (https://github.com/tianon/gosu). Both programs are used to enable execution of a command as a specific user with the same environment variables and permissions as would normally be available to the user.

Thus you can effectively "step down" from root inside the container to run a specific command as a user and not as root.

So, answering the question, the alternative solution in Ubuntu would be to install gosu itself, which has no dependencies.

The su-exec program in this script is actually the Alpine version created by Natanael Copa: https://github.com/ncopa/su-exec

It is installed from the Dockerfile (https://github.com/31z4/zookeeper-docker/blob/d5d320f94212691bd6e60326e45c152ac6784210/3.4.10/Dockerfile) on line 6.

The Alpine su-exec version is a substitute for gosu (https://github.com/tianon/gosu). Both programs are used to enable execution of a command as a specific user with the same environment variables as would be available to the user.

Thus you can effectively "step down" from root inside the container to run a specific command as a user and not as root.

So, answering the question, the alternative solution in Ubuntu would be to install gosu itself, which has no dependencies.

The su-exec program in this script is actually the Alpine version created by Natanael Copa.

It is installed from the Dockerfile on line 6.

The Alpine su-exec version is a substitute for gosu. Both programs are used to enable execution of a command as a specific user with the same environment variables and permissions as would normally be available to the user.

Thus you can effectively "step down" from root inside the container to run a specific command as a user and not as root.

So, answering the question, the alternative solution in Ubuntu would be to install gosu itself, which has no dependencies.

deleted 74 characters in body
Source Link
Loading
Source Link
Loading