mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-07-04 02:56:18 +00:00
runtime: set the sandbox storage path static
Since we now have "unix://" kind of socket returned by the
SocketAddress() function, there is no more need to build the sandbox
storage path dynamically to keep OS compatibility.
Fixes: #2738
Suggested-by: Christophe de Dinechin <dinechin@redhat.com>
Signed-off-by: Francesco Giudici <fgiudici@redhat.com>
(cherry picked from commit 2304a59601
)
This commit is contained in:
parent
97167ccddd
commit
b8fc1af363
@ -185,7 +185,7 @@ func (s *service) mountPprofHandle(m *http.ServeMux, ociSpec *specs.Spec) {
|
|||||||
|
|
||||||
// GetSandboxesStoragePath returns the storage path where sandboxes info are stored
|
// GetSandboxesStoragePath returns the storage path where sandboxes info are stored
|
||||||
func GetSandboxesStoragePath() string {
|
func GetSandboxesStoragePath() string {
|
||||||
return filepath.Join(string(filepath.Separator), "run", "vc", "sbs")
|
return "/run/vc/sbs"
|
||||||
}
|
}
|
||||||
|
|
||||||
// SocketAddress returns the address of the unix domain socket for communicating with the
|
// SocketAddress returns the address of the unix domain socket for communicating with the
|
||||||
|
Loading…
Reference in New Issue
Block a user