Skip to content
This repository has been archived by the owner on Aug 10, 2023. It is now read-only.

Commit

Permalink
Do not allocate a pseudo-tty when running docker-compose (#743)
Browse files Browse the repository at this point in the history
See the [helm docs](https://docs.docker.com/v17.09/compose/reference/exec/) for the `-T` flag explanation.

When running this as a startup-script as shown in the [Mender solution doc](https://cloud.google.com/community/tutorials/cloud-iot-mender-ota) we run into [this error](docker/compose#3352). Disabling pseudo-tty creation fixes it.
  • Loading branch information
lwander authored and ToddKopriva committed Feb 22, 2019
1 parent d3b9fb0 commit 5dbb7ae
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ docker volume inspect --format '{{.Mountpoint}}' mender-artifacts
git add prod.yml
git commit -m 'production: final configuration'
./run up -d
sudo ./run exec mender-useradm /usr/bin/useradm create-user --username=mender@example.com --password=mender_gcp_ota
sudo ./run exec -T mender-useradm /usr/bin/useradm create-user --username=mender@example.com --password=mender_gcp_ota
export FULL_PROJECT=$(gcloud config list project --format "value(core.project)")
export PROJECT="$(echo $FULL_PROJECT | cut -f2 -d ':')"
export REGION='us-central1'
Expand Down

0 comments on commit 5dbb7ae

Please sign in to comment.