Skip to content

Commit

Permalink
Added -n to echo command
Browse files Browse the repository at this point in the history
  • Loading branch information
Schwitzd authored Dec 28, 2024
1 parent 9961072 commit a60e658
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ This command sets up the current machine as the Swarm manager.
To add a secret to your Docker Swarm, use the following command:

```sh
echo "your_secret_value" | docker secret create my_secret_name -
echo -n "your_secret_value" | docker secret create my_secret_name -
```

Personally, I don't like this approach because your secret is stored in your bash history, but unfortunately it's necessary because you can get trailing space problems with other methods. So I suggest you remove the line from your history with `history -d <line_number>`.
Expand Down

0 comments on commit a60e658

Please sign in to comment.