mirror of
https://github.com/podman-container-tools/podman.git
synced 2026-08-07 17:36:22 +00:00
Ensure podman temp directory is created on Start as well.
`getRuntimeDir()` (which is also responsible for creating TMPDIR if it doesn't exist) was being called on `Init()` but not on `Start()` which meant that after the host was restarted and TMPDIR was wiped, `startHostNetworking()` would try to start gvproxy and immediately bail. Signed-off-by: kaorihinata <kaori.hinata@gmail.com>
This commit is contained in:
parent
20b22f8f10
commit
7472bdb161
1 changed files with 4 additions and 0 deletions
|
|
@ -572,6 +572,10 @@ func (m *MacMachine) Start(name string, opts machine.StartOptions) error {
|
|||
return machine.ErrVMAlreadyRunning
|
||||
}
|
||||
|
||||
if _, err := m.getRuntimeDir(); err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
// TODO handle returns from startHostNetworking
|
||||
forwardSock, forwardState, err := m.startHostNetworking()
|
||||
if err != nil {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue