diff --git a/docs/how-to/code/convert-to-pebble-layer/rockcraft.yaml b/docs/how-to/code/convert-to-pebble-layer/rockcraft.yaml index 4781918ac..28e78d398 100644 --- a/docs/how-to/code/convert-to-pebble-layer/rockcraft.yaml +++ b/docs/how-to/code/convert-to-pebble-layer/rockcraft.yaml @@ -38,14 +38,14 @@ services: nginx: override: replace startup: disabled - command: nginx -g 'daemon off;' + command: nginx [ -g 'daemon off;' ] environment: TZ: UTC on-failure: shutdown nginx-debug: override: replace startup: disabled - command: nginx-debug -g 'daemon off;' + command: nginx-debug [ -g 'daemon off;' ] environment: TZ: UTC on-failure: shutdown diff --git a/docs/how-to/code/convert-to-pebble-layer/task.yaml b/docs/how-to/code/convert-to-pebble-layer/task.yaml index 0966cfcab..50d92519d 100644 --- a/docs/how-to/code/convert-to-pebble-layer/task.yaml +++ b/docs/how-to/code/convert-to-pebble-layer/task.yaml @@ -19,11 +19,13 @@ execute: | rm custom-nginx-rock_latest_amd64.rock # [docs:docker-run] - docker run -d --name nginx-pebble-service -p 8080:80 custom-nginx-rock:latest + docker run -d --name nginx-pebble-service -p 8000:80 custom-nginx-rock:latest # [docs:docker-run-end] + docker exec nginx-pebble-service pebble start nginx + # [docs:curl] - curl localhost:8080 + curl localhost:8000 # [docs:curl-end] docker rm -f nginx-pebble-service