forked from confidential-containers/cloud-api-adaptor
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docker: Fix userdata bind mount path inside the container
For docker provider we use systemd container which mounts /run as a tmpfs volume. This mounting of /run happens after docker has bind mounted the userdata file inside the container and consequently the userdata file is no longer accessible. This commit changes the path of the userdata file to not use `/run` for the docker provider. Signed-off-by: Pradipta Banerjee <[email protected]>
- Loading branch information
Showing
4 changed files
with
26 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,12 @@ | ||
package paths | ||
|
||
const ( | ||
AACfgPath = "/run/peerpod/aa.toml" | ||
AuthFilePath = "/run/peerpod/auth.json" | ||
CDHCfgPath = "/run/peerpod/cdh.toml" | ||
InitDataPath = "/run/peerpod/initdata" | ||
AgentCfgPath = "/run/peerpod/agent-config.toml" | ||
ForwarderCfgPath = "/run/peerpod/daemon.json" | ||
UserDataPath = "/run/media/cidata/user-data" | ||
AACfgPath = "/run/peerpod/aa.toml" | ||
AuthFilePath = "/run/peerpod/auth.json" | ||
CDHCfgPath = "/run/peerpod/cdh.toml" | ||
InitDataPath = "/run/peerpod/initdata" | ||
AgentCfgPath = "/run/peerpod/agent-config.toml" | ||
ForwarderCfgPath = "/run/peerpod/daemon.json" | ||
UserDataPath = "/run/media/cidata/user-data" | ||
DockerUserDataPath = "/media/cidata/user-data" | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters