Skip to content

Commit

Permalink
Fix docker stop() behavior
Browse files Browse the repository at this point in the history
  • Loading branch information
domdomegg committed Oct 15, 2023
1 parent f2c4848 commit a5d16f3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/start.ts
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ export const start = async (customOptions?: Partial<StartOptions>): Promise<void
}

const commonArgs = ['-jar', jarFilename, '-port', String(options.port)];
const dockerArgs = ['run', '-d', '-p', `${options.port}:${options.port}`, options.dockerImage];
const dockerArgs = ['run', '-p', `${options.port}:${options.port}`, options.dockerImage];
if (options.install_path) {
deprecation('Use installPath instead of install_path');
}
Expand Down
2 changes: 1 addition & 1 deletion src/stop.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { instances } from './instances';
export const stop = async (port: number): Promise<void> => {
const instance = instances.get(port);
if (instance) {
instance.process.kill('SIGKILL');
instance.process.kill('SIGTERM');
instances.delete(port);
}
};

0 comments on commit a5d16f3

Please sign in to comment.