Skip to content

Commit

Permalink
improving message for tk_init_docker
Browse files Browse the repository at this point in the history
  • Loading branch information
benjaminguinaudeau committed Nov 29, 2020
1 parent 0f24e87 commit 92e78a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/docker_managment.R
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ tk_init_docker <- function(){

# Check if container is running ; if not create it
if(!any(stringr::str_detect(system("docker ps -a", intern = T), "tiktoksignature$"))){
message("Creating container `tiktoksignature`... This might take a couple of minutes.")
message("Creating container `tiktoksignature` and hosting plumber-API on port localhost:32768")
system("docker run -dt -p 32768:6543 --name tiktoksignature tiktoksignature:latest", intern = T)
if(!any(stringr::str_detect(system("docker ps", intern = T), "tiktoksignature$"))){
cli::cli_alert_danger("Unable to create container `tiktoksignature`")
Expand Down

0 comments on commit 92e78a3

Please sign in to comment.