Skip to content

Commit

Permalink
Remove unused image prefix from IsContainerRunning
Browse files Browse the repository at this point in the history
  • Loading branch information
svrana committed Jun 14, 2019
1 parent 6b7cab5 commit 68d0421
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docker/docker.go
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ func RemoveContainerIfRequired(networkName, networkID string, containerNames []s

// IsContainerRunning checks if there is a container with status "up" for the
// specified project.
func IsContainerRunning(project, name string) (bool, error) {
func IsContainerRunning(name string) (bool, error) {
cli, err := getDockerClient()
if err != nil {
return false, errors.Wrap(err, "failed to create docker client")
Expand Down
2 changes: 1 addition & 1 deletion project.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ func (p *Project) Up(appConfig *c.Dev, followLogs bool) {
// Shell runs commands or creates an interfactive shell on the Project
// container.
func (p *Project) Shell(appConfig *c.Dev, args []string) {
running, err := docker.IsContainerRunning(appConfig.ImagePrefix, p.Config.Name)
running, err := docker.IsContainerRunning(p.Config.Name)
if err != nil {
log.Fatalf("Error communicating with docker daemon, is it up? %s", err)
}
Expand Down

0 comments on commit 68d0421

Please sign in to comment.